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.

Bug: commit subject-case fails on valid message

See original GitHub issue

Hi 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)

  1. example of expected behavior: https://ci.ipfs.team/blue/organizations/jenkins/IPFS%2Fjs-ipfs/detail/PR-1045/46/pipeline/28#step-202-log-3
  2. 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:closed
  • Created 5 years ago
  • Comments:6

github_iconTop GitHub Comments

3reactions
victorbcommented, Jun 16, 2019

@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.

2reactions
codericacommented, Jun 16, 2019

Thanks @JonKrone @victorb I appreciate the help!

Read more comments on GitHub >

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

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