From 5f12f06297b8e0c66f1378bd3085b177f40fd52a Mon Sep 17 00:00:00 2001 From: Josh McKinney Date: Wed, 3 May 2023 21:29:37 -0700 Subject: [PATCH] ci: add ci, build, and revert to allowed commit types This is the same list as https://github.com/conventional-changelog/commitlint/tree/master/%40commitlint/config-conventional\#rules --- cliff.toml | 22 ++++++++++++---------- committed.toml | 2 ++ 2 files changed, 14 insertions(+), 10 deletions(-) diff --git a/cliff.toml b/cliff.toml index 5577094d..ebc9e0b5 100644 --- a/cliff.toml +++ b/cliff.toml @@ -55,19 +55,21 @@ commit_preprocessors = [ ] # regex for parsing and grouping commits commit_parsers = [ - { message = "^feat", group = "Features"}, - { message = "^fix", group = "Bug Fixes"}, - { message = "^Fix", group = "Bug Fixes"}, - { message = "^doc", group = "Documentation"}, - { message = "^perf", group = "Performance"}, - { message = "^refactor", group = "Refactor"}, - { message = "^style", group = "Styling"}, - { message = "^test", group = "Testing"}, + { message = "^feat", group = "Features"}, + { message = "^[fF]ix", group = "Bug Fixes"}, + { message = "^refactor", group = "Refactor"}, + { message = "^doc", group = "Documentation"}, + { message = "^perf", group = "Performance"}, + { message = "^style", group = "Styling"}, + { message = "^test", group = "Testing"}, { message = "^chore\\(release\\): prepare for", skip = true}, { message = "^chore\\(pr\\)", skip = true}, { message = "^chore\\(pull\\)", skip = true}, - { message = "^chore", group = "Miscellaneous Tasks"}, - { body = ".*security", group = "Security"}, + { message = "^chore", group = "Miscellaneous Tasks"}, + { body = ".*security", group = "Security"}, + { message = "^build", group = "Build"}, + { message = "^ci", group = "Continuous Integration"}, + { message = "^revert", group = "Reverted Commits"}, ] # protect breaking changes from being skipped due to matching a skipping commit_parser protect_breaking_commits = false diff --git a/committed.toml b/committed.toml index 5111d86e..a380f5c2 100644 --- a/committed.toml +++ b/committed.toml @@ -14,3 +14,5 @@ subject_not_punctuated = true line_length = 0 # disable subject length subject_length = 0 +# default allowed_types [ "chore", "docs", "feat", "fix", "perf", "refactor", "style", "test" ] +allowed_types = ["build", "chore", "ci", "docs", "feat", "fix", "perf", "refactor", "revert", "style", "test" ]