From 57a0b702b81d7e866c2b1507e1cd0a33a8b2218a Mon Sep 17 00:00:00 2001 From: Troy Date: Mon, 21 Aug 2023 15:01:14 +0100 Subject: [PATCH] feat(HACBS-2506): add revert prefix support Updates gitlint to support "revert" as a prefix Signed-off-by: Troy --- .github/gitlint/contrib_format_conventional_commits.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/gitlint/contrib_format_conventional_commits.py b/.github/gitlint/contrib_format_conventional_commits.py index d7ed4659..618f9074 100644 --- a/.github/gitlint/contrib_format_conventional_commits.py +++ b/.github/gitlint/contrib_format_conventional_commits.py @@ -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 [