Skip to content

Commit

Permalink
Detect more non-verb subjects
Browse files Browse the repository at this point in the history
Enforce the rule: commit subject should use imperative mood.

Change-Id: I285d9a65519bdeea0999ad74f76b71d324051baa
  • Loading branch information
jserv committed Feb 23, 2025
1 parent a12c71c commit 6d74097
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/commit-msg.hook
Original file line number Diff line number Diff line change
Expand Up @@ -296,7 +296,7 @@ done

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

Expand Down

0 comments on commit 6d74097

Please sign in to comment.