Document use of commitlint as a github action (possible own CLI in the future)
See original GitHub issueExpected Behavior
Provide a github actions cli just like commitlint-travis
.
Context
It should easy setup for running commitlint as part of a github actions setup.
Issue Analytics
- State:
- Created 5 years ago
- Reactions:45
- Comments:29 (6 by maintainers)
Top Results From Across the Web
How to lint the message of a pull request merge commit?
I've set up a GitHub Actions workflow that uses commitlint to lint messages ... "future" merge commit, but I didn't find a way...
Read more >Commitlint: Write more organized code - LogRocket Blog
Make your life easier as a developer by using commitlint to format, standardize, and organize code and messages.
Read more >@ngneat/lib - npm
Automated releases with GitHub Actions; Secrets and tokens; Initial release; Working on a future release. Deployment.
Read more >Git Hooks | Atlassian Git Tutorial
Git Hooks are scripts that run automatically every time a particular event occurs in a Git repository. Learn what they do and how...
Read more >JS monorepos in prod 3: commit enforcement and changelog ...
Since Commitizen has already modified our package.json file, we can just stage that file and use the npx cz command instead of git...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I think you can also just call @commitlint/cli for this and get number of commits from PR event
commitlint --from HEAD~${{ github.event.pull_request.commits }} --to HEAD
and fetch all commits in checkoutfetch-depth: 0
. Here is full example:I’ve created a github action for this that doesn’t require any setup, if you want to have a look: https://github.com/marketplace/actions/commit-linter
I tried using @bennypowers’s action but got some issues and ended up creating another one, as explained here
I am already using in some projects, feel free to use it too and let me know if anything goes wrong 😃