Hi there :)
A recent release may have broken commit subject parsing for the subject-case rule.
With the @commitlint/config-conventional rules:
revert: internalKey recording should be valid
revert: internalKey recording fails with subject must be camel-case, kebab-case, lower-case, snake-case [subject-case]
鈹溾攢 @commitlint/[email protected]
鈹溾攢 @commitlint/[email protected]
鈹溾攢 @commitlint/[email protected]
鈹溾攢 @commitlint/[email protected]
鈹溾攢 @commitlint/[email protected]
鈹溾攢 @commitlint/[email protected]
鈹溾攢 @commitlint/[email protected]
鈹溾攢 @commitlint/[email protected]
鈹溾攢 @commitlint/[email protected]
鈹溾攢 @commitlint/[email protected]
鈹溾攢 @commitlint/[email protected]
鈹溾攢 @commitlint/[email protected]
鈹溾攢 @commitlint/[email protected]
鈹溾攢 @commitlint/[email protected]
鈹溾攢 @commitlint/[email protected]
鈹溾攢 @marionebl/[email protected]
Resolved with: https://github.com/marionebl/commitlint/commit/bc5a3287104b06ab3b6ec7ee0edb1e6f02448e81
Thanks!
@JonKrone I've been scraping the internet for examples of how to use this package in Jenkins CI. Your issue leads me to believe that may be your project setup. If so, can you share how you got that working?
Hi there @coderica!
Yeah, it looks like the setup we had was using Jenkins, though I was not involved in adding commitlint to their CI step. I believe @VictorB was the one to do so and may be able to answer your questions.
Good luck getting it working!
@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!
For the wayward coder looking for a solution to using commitlint in Jenkins CI, here's what ended up working for me:
sh "commitlint --from `git rev-parse node/${script.gitlabTargetBranch}` --to `git rev-parse node/${script.gitlabSourceBranch}`"
Note that the script.gitlab... variables are available via the gitlab-plugin for Jenkins.
Most helpful comment
@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.