Skip to content

Commit

Permalink
limit commit group matching to before colon to prevent false positives
Browse files Browse the repository at this point in the history
Signed-off-by: Reuben Miller <[email protected]>
  • Loading branch information
reubenmiller committed Aug 1, 2024
1 parent 7d70cd8 commit d71da04
Showing 1 changed file with 9 additions and 10 deletions.
19 changes: 9 additions & 10 deletions cliff.toml
Original file line number Diff line number Diff line change
Expand Up @@ -109,17 +109,16 @@ commit_parsers = [
{ message = "Merge remote-tracking branch 'origin/main' into", skip = true },

# classify commits into sections
{ message = "feat", group = "<!-- 0 -->:rocket: Features" },
{ message = "doc", group = "<!-- 2 -->:notebook: Documentation" },
{ message = "fix", group = "<!-- 1 -->:bug: Bug Fixes" },
{ message = "perf", group = "<!-- 3 -->:runner: Performance" },
{ message = "refactor", group = "<!-- 4 -->:sailboat: Refactor" },
{ message = "style", group = "<!-- 5 -->:nail_care: Styling" },
{ message = "test", group = "<!-- 6 -->:mag_right: Testing" },
{ message = "ci:", group = "<!-- 9 -->:mag_right: CI/CD" },
{ message = "chore", group = "<!-- 7 -->:clipboard: Miscellaneous Tasks" },
{ message = "feat(\\(.+\\))?:", group = "<!-- 0 -->:rocket: Features" },
{ message = "(doc|docs)(\\(.+\\))?:", group = "<!-- 2 -->:notebook: Documentation" },
{ message = "fix(\\(.+\\))?:", group = "<!-- 1 -->:bug: Bug Fixes" },
{ message = "perf(\\(.+\\))?:", group = "<!-- 3 -->:runner: Performance" },
{ message = "(refactor|refactoring)(\\(.+\\))?:", group = "<!-- 4 -->:sailboat: Refactor" },
{ message = "style(\\(.+\\))?:", group = "<!-- 5 -->:nail_care: Styling" },
{ message = "(test|tests|testing)(\\(.+\\))?:", group = "<!-- 6 -->:mag_right: Testing" },
{ message = "ci(\\(.+\\))?:", group = "<!-- 9 -->:mag_right: CI/CD" },
{ message = "chore(\\(.+\\))?:", group = "<!-- 7 -->:clipboard: Miscellaneous Tasks" },
{ body = ".*security", group = "<!-- 8 -->:lock: Security" },
{ message = ".*(deps|Bump).*", group = "Dependencies"},
{ message = ".*", group = "<!-- 7 -->:clipboard: Miscellaneous Tasks"},
]

Expand Down

0 comments on commit d71da04

Please sign in to comment.