We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 105253f commit a8d4325Copy full SHA for a8d4325
scripts/commit-msg.hook
@@ -282,6 +282,12 @@ validate_commit_message() {
282
add_warning 1 "Avoid using parentheses '()' in commit subjects"
283
fi
284
285
+ # 7c. Alert if the commit subject starts with "Implementation"
286
+ # ------------------------------------------------------------------------------
287
+ if [[ "${COMMIT_SUBJECT_TO_PROCESS}" =~ ^(First|My|Implementation|Creation|Modification) ]]; then
288
+ add_warning 1 "Commit subject should use imperative mood"
289
+ fi
290
+
291
# 8. Use the body to explain what and why vs. how
292
# ------------------------------------------------------------------------------
293
0 commit comments