Skip to content

Commit

Permalink
feat(HACBS-2506): add revert prefix support
Browse files Browse the repository at this point in the history
Updates gitlint to support "revert" as a prefix

Signed-off-by: Troy <[email protected]>
  • Loading branch information
Troy876 committed Aug 21, 2023
1 parent 52e55e3 commit 57a0b70
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/gitlint/contrib_format_conventional_commits.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ def validate(self, commit):
"""Validate the given commit checking that the title has a
proper prefix and the description starts with a lowercase."""

regex_string = "^(chore|docs|feat|fix|refactor|style|test)(\(.*\))?: [a-z].*$"
regex_string = "^(chore|docs|feat|fix|refactor|style|test|revert)(\(.*\))?: [a-z].*$"
pattern = re.compile(regex_string)
if not pattern.match(commit.message.title):
return [
Expand Down

0 comments on commit 57a0b70

Please sign in to comment.