I know that a similar request was discussed before, however angular does contemplate revert commits.
As a minimum, cz check should accept commit messages beginning with revert:, otherwise when it is configured as a pre-commit hook it does not allow revert commits.
Moreover, IMHO a cz revert command should be added, accepting the <commit> to revert. It should run git revert <commit>, including in the message body: This reverts commit <hash>. as per angular instructions. See information on git revert.
For examples of revert commit messages, see for instance standard-version and conventional-changelog commit logs.
Notice that both commitlint and gitlint support revert commits.
I know that a similar request was discussed before, however
angulardoes contemplate revert commits.As a minimum,
cz checkshould accept commit messages beginning withrevert:, otherwise when it is configured as apre-commithook it does not allow revert commits.Moreover, IMHO a
cz revertcommand should be added, accepting the<commit>to revert. It should rungit revert <commit>, including in the message body:This reverts commit <hash>.as perangularinstructions. See information ongit revert.For examples of revert commit messages, see for instance
standard-versionandconventional-changelogcommit logs.Notice that both
commitlintandgitlintsupport revert commits.