codacy / git-version

Git versioning used in Codacy
Apache License 2.0
134 stars 44 forks source link

[CY-6611] "breaking:" word always bumps the major version, not just at the start of the commit message #64

Open nfcodacy opened 2 years ago

nfcodacy commented 2 years ago

A commit message that has "breaking:" in any part of it will trigger a major version bump, even if it is inside a comment (# :breaking:).

Can this be reviewed to only match "breaking:" and "feature:" at the start of the commit message?

I think that only the following commit messages should trigger a bump: "breaking: (...)" ":breaking: (...)" " breaking: (...)" (leading whitespaces but not newline) " :breaking: (...)" (leading whitespaces but not newline) and then the same thing for "feature:".

github-actions[bot] commented 2 years ago

Internal ticket created : CY-6611