Skip to content

Commit 6d74097

Browse files
committed
Detect more non-verb subjects
Enforce the rule: commit subject should use imperative mood. Change-Id: I285d9a65519bdeea0999ad74f76b71d324051baa
1 parent a12c71c commit 6d74097

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/commit-msg.hook

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -296,7 +296,7 @@ done
296296

297297
# 7c. Alert if the commit subject starts with "Implementation"
298298
# ------------------------------------------------------------------------------
299-
if [[ "${COMMIT_SUBJECT_TO_PROCESS}" =~ ^(First|My|Implementation|Creation|Modification) ]]; then
299+
if [[ "${COMMIT_SUBJECT_TO_PROCESS}" =~ ^(First|My|Implementation|Implementations|Creation|Modification|Queue) ]]; then
300300
add_warning 1 "Commit subject should use imperative mood"
301301
fi
302302

0 commit comments

Comments
 (0)