Support linting more than the commit message itself
See original GitHub issueI would like to create a plugin for commitlint that would lint the committer/author email to only allow email domains from a list i.e. company emails only and possibly another to make sure commits are signed.
Would a PR that adds some fields to the parsed
variable in the rules function be welcome?
Are there better ways of doing this maybe and it’s not interesting to add support for it in commitlint?
Issue Analytics
- State:
- Created 3 years ago
- Comments:8 (1 by maintainers)
Top Results From Across the Web
Commit Message Lint — Improve the Code Commit Quality
Access to code itself, enabling us to perform tasks like linting, static code reviews etc. Central installation into the repository, providing ...
Read more >How to Write Good Commit Messages with Commitlint
Commitlint is a simple tool that lints your commit messages and makes sure they follow a set of rules. It runs as a...
Read more >Git Commit Message Linting as a gateway and not after it was ...
Commit locally to branch, open pull request (case of github) merge PR from the github UI. I can easily cover the case of...
Read more >How to lint Git commit messages with commitlint and husky
How to link Git commit message with commitlint and husky (npm package).Correction: when adding the husky commit - msg hook, make sure to...
Read more >Commit Message Guideline - pre-RFC - Apache TVM Discuss
The importance of them conveying enough context and information about the code being changed (or added) will grow as the project grows and...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
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
related: #2118 and #321
Found where things need to be changed for this to be supported, it seems the
git-raw-commits
package supports getting the committer and author emails by using the placeholders from git log’s pretty format,%cE
and&aE
, in addition to the message%B
.I hope I’ll have time to add this over the next couple of weeks, kinda swamped at work and this isn’t too high on my priority list currently.