commitlint icon indicating copy to clipboard operation
commitlint copied to clipboard

Enforce revert commit format

Open ZachJW34 opened this issue 6 years ago • 1 comments

Expected Behavior

Commitlint configuration extending @commitlint/config-conventional should enforce recommended revert commit format documented here. A commit of:

revert: not following documentation

This commit reverts 12345

should fail commit linting.

Current Behavior

A revert commit not following the default revert regex pattern /^revert:\s([\s\S]*?)\s*This reverts commit (\w*)\./ will pass commit linting.

ZachJW34 avatar Oct 17 '19 14:10 ZachJW34

I think this answers your issue: https://github.com/conventional-changelog/commitlint/pull/3692

rdbisme avatar Nov 23 '23 16:11 rdbisme