mirror of
https://github.com/wagoid/commitlint-github-action.git
synced 2025-11-07 08:06:54 +00:00
Lints Pull Request commits with commitlint
|
|
||
|---|---|---|
| .github/workflows | ||
| .gitignore | ||
| .prettierrc | ||
| action.yml | ||
| commitlint.config.js | ||
| Dockerfile | ||
| entrypoint.sh | ||
| LICENSE | ||
| package-lock.json | ||
| package.json | ||
| README.md | ||
| run.js | ||
Commitlint Github Action
Lints Pull Request commits with commitlint
Usage
Create a github workflow in the .github folder, e.g. .github/workflows/commitlint.yml:
name: Commitlint
on: [pull_request]
jobs:
lint:
runs-on: ubuntu-latest
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
steps:
- uses: actions/checkout@v1
- uses: wagoid/commitlint-github-action@v1.1.0
Inputs
configFile
The path to your commitlint config file. Default commitlint.config.js.
About extends in your config file
This is a Docker action, and was made like this so that you can run it with minimum setup, regardless of your repo's environment. It comes packed with the most famous shared configurations that you can use in your commitlint config's extends field:
- @commitlint/config-angular
- @commitlint/config-conventional
- @commitlint/config-lerna-scopes
- @commitlint/config-patternplate
- conventional-changelog-lint-config-canonical
- commitlint-config-jira
If you have a custom shared config that lies in a private registry, let us know! We will be happy to cover this case if necessary.