question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Support linting more than the commit message itself

See original GitHub issue

I 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:open
  • Created 3 years ago
  • Comments:8 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
Billy-commented, Mar 15, 2021

related: #2118 and #321

1reaction
zimmecommented, Feb 19, 2021

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found