Bug: commit subject-case fails on valid message
See original GitHub issueHi there 😃
A recent release may have broken commit subject parsing for the subject-case rule.
Expected Behavior
With the @commitlint/config-conventional
rules:
revert: internalKey recording
should be valid
Current Behavior
revert: internalKey recording
fails with subject must be camel-case, kebab-case, lower-case, snake-case [subject-case]
Affected packages
- config-conventional I don’t know enough about the project to have a good guess where
Steps to Reproduce (for bugs)
- example of expected behavior: https://ci.ipfs.team/blue/organizations/jenkins/IPFS%2Fjs-ipfs/detail/PR-1045/46/pipeline/28#step-202-log-3
- example of current behavior: https://ci.ipfs.team/blue/organizations/jenkins/IPFS%2Fjs-ipfs/detail/PR-1045/47/pipeline/28#step-110-log-6
Context
├─ @commitlint/cli@6.2.0
├─ @commitlint/config-conventional@7.0.0
├─ @commitlint/ensure@6.1.3
├─ @commitlint/execute-rule@6.1.3
├─ @commitlint/format@6.1.3
├─ @commitlint/is-ignored@6.1.3
├─ @commitlint/lint@6.2.0
├─ @commitlint/load@6.1.3
├─ @commitlint/message@6.1.3
├─ @commitlint/parse@6.1.3
├─ @commitlint/read@6.1.3
├─ @commitlint/resolve-extends@6.1.3
├─ @commitlint/rules@6.2.0
├─ @commitlint/to-lines@6.1.3
├─ @commitlint/top-level@6.1.3
├─ @marionebl/sander@0.6.1
Issue Analytics
- State:
- Created 5 years ago
- Comments:6
Top Results From Across the Web
Valid commit message subject is rejected · Issue #438 - GitHub
I'm not sure if this was intentional, but it looks like the sentence-case setting of the subject-case rule is failing with numbers/semantic ...
Read more >husky - Strange error when attempting to commit. [subject-empty]
What it means is that you've added a non-Git program (specifically, something called "husky") and told Git to use Husky to check your...
Read more >Push fails due to commit message - gerrit-review
Push fails due to commit message ... If Gerrit rejects pushing a commit it is often the case that there is an issue...
Read more >git-commit Documentation - Git
When git rebase --autosquash squashes the "amend!" commit into <commit> , the log message of <commit> is replaced by the refined log message...
Read more >Commitlint: Write more organized code - LogRocket Blog
Commitlint is the ESLint for your commit messages. It performs validations on any text against a predefined commit format.
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
@coderica here is a example with groovy how to use the commitlint: https://github.com/ipfs/jenkins-libs/blob/master/vars/javascript.groovy#L386-L396
This was written at least a year ago, so not 100% it still works with the latest versions of commitlint, but worked at the time.
Thanks @JonKrone @victorb I appreciate the help!