How do I prevent a non-existent field (from an unconventional commit) from trashing the commit? #1365
-
[git]
conventional_commits = true
filter_unconventional = false
require_conventional = false
commit_parsers = [
{ field = "breaking", pattern = "true", group = "breaking changes" },
{ message = "^.*", group = "other" },
]All unconventional commits are trashed because
I understand why this happens, but I cannot figure out how to prevent this. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
As far as I know,
If your repository follows Conventional Commits and includes a https://git-cliff.org/blog/2.4.0#-parse-commits-by-footer In that case, you could use the If you are not using commit_parsers = [
{ message = "^(feat|fix|docs|style|refactor|perf|test|build|ci|chore|revert)(\\([^)]+\\))?!", group = "breaking changes" },
{ message = "^.*", group = "other" },
] |
Beta Was this translation helpful? Give feedback.
-
|
It looks like #1015 also contains some of the same problems I have:
|
Beta Was this translation helpful? Give feedback.
My config works.