conventional-changelog / conventional-changelog/commitlint

Enforce revert commit format

Open
#833 1 comment 5 reactions 0 assignees View on GitHub
enhancement
Dominant language
TypeScript
Stars
18.7k
Forks
970
Avg merge
7h 33m
Merged PRs (30d)
49

Description

## Expected Behavior

Commitlint configuration extending `@commitlint/config-conventional` should enforce recommended revert commit format documented [here](https://github.com/conventional-changelog/conventional-changelog/tree/master/packages/conventional-changelog-angular#revert). 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.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.