Skip to content

Commit

Permalink
Merge pull request konflux-ci#239 from Troy876/HACBS-2506
Browse files Browse the repository at this point in the history
feat(HACBS-2506): add revert prefix support
  • Loading branch information
happybhati authored Aug 21, 2023
2 parents 52e55e3 + 57a0b70 commit 2bf3743
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 2bf3743

Please sign in to comment.