Skip to content

Single step to validate commit messages in circleci 2.0 with commitlint from npm

License

Notifications You must be signed in to change notification settings

wilau2/circleci-commitlint-step

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

42 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Single step to validate commit messages in circleci 2.0 with commitlint from npm

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published