Skip to content

Commit 5ecc082

Browse files
Accept bracketed GH #XYZ as a valid commit message []
1 parent 0a7802c commit 5ecc082

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎.git-hooks/pre-push.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ def _is_excluded_file_path(path_str: str) -> bool:
9494
)
9595

9696
COMMIT_SUBJECT_POLICY_REGEX = re.compile(
97-
r'^.*\[((EDG[cfjp]+fe/([0-9]+))|,)*\].*$'
97+
r'^.*\[(GH #[0-9]+|(EDG[cfjp]+fe/([0-9]+))|,)*\].*$'
9898
)
9999

100100
TOOL_PATH_GIT = shutil.which('git')

0 commit comments

Comments
 (0)