Skip to content

Latest commit

 

History

History
46 lines (33 loc) · 1.16 KB

README.md

File metadata and controls

46 lines (33 loc) · 1.16 KB

circleci-commitlint-step CircleCI

Commit message validation with commitlint npm package

What it does?

alt text

alt text

Use

Add the following step to your circleci config.yml:

version: 2

jobs:
  commitlint:
    docker:
      - image: williamlauze/circleci-commitlint:latest
    working_directory: /www
    steps:
      - checkout
      - run:
          name: Lint commit messages
          command: |
            /bin/sh /.scripts/commitlint_range.sh

workflows:
  version: 2
  my_pipeline:
    jobs:
      - commitlint

Private repo settings

You will need to have a github OAUTH token to get the pull request details Create an environment variable in your circleci repository GITHUB_TOKEN_COMMITLINT=yourToken

References