From e63cb65ae96139d70d2355c7fbb9282d8250e52e Mon Sep 17 00:00:00 2001 From: Piotr Leniec Date: Tue, 12 Jan 2021 11:53:22 +0100 Subject: [PATCH] [DW-31] Don't require commit subject to start with Add/Change/Fix After the testing period we decided that the rule to start a commit subject with Add/Change/Fix is overly restrictive. --- tools/check_commit_messages.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/check_commit_messages.py b/tools/check_commit_messages.py index 16ffa7ee3d0fddfad9256e5c977acd59d1c0fda8..e3c70c63b3b0e18beafa5201bee8e67a5cb102d2 100755 --- a/tools/check_commit_messages.py +++ b/tools/check_commit_messages.py @@ -33,7 +33,7 @@ def validate_commit(commit): empty_line = lines[1] body = ''.join(lines[2:]).strip() - subject_format = r'^\[\w+-\d+\] (?:Add|Change|Fix) .+[^.]$' + subject_format = r'^\[\w+-\d+\] .+[^.]$' if not re.match(subject_format, subject): errors.append(f'[{commit.hexsha}] invalid subject "{subject}", should match format "{subject_format}"')