Skip to content

Enforce revert commit format #833

Open
@ZachJW34

Description

@ZachJW34

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions