-
|
Is it possible to use git-cliff to check if a string would be a valid commit message according to the configuration? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
|
Hey, thanks for starting the discussion. Could you elaborate on what you're trying to achieve? Are you looking to validate the commit message before creating it, something similar to what Commitizen does? Since git-cliff is primarily a changelog generator, my understanding is that it doesn't provide validation capabilities out of the box. In this case, it might make sense to combine git-cliff's configuration with a tool like Commitizen or another commit linting tool. |
Beta Was this translation helpful? Give feedback.
Hello, I recommend using action-semantic-pull-request for this. You can see how we are doing this at @ratatui in this workflow. It also leaves a comment on the PR if it is not following the conventional commit guidelines.
I understand that, but as @ognis1205 already pointed out, git-cliff is primarily a changelog generation tool and we currently do not provide any "check" capability that you can integrate externally. With that being said, I think the closest thing we have now to that is the
fail_on_unmatchedconfiguration option. (M…