Skip to content

Commit

Permalink
Merge pull request #8 from akuleshov7/bugfix/git-hooks
Browse files Browse the repository at this point in the history
Fixed commit message pattern in commit-msg hook
  • Loading branch information
orchestr7 authored Jul 2, 2020
2 parents 6e6cdfb + b89690a commit 8f93e46
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .git-hooks/commit-msg.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/env bash

commit_pattern="### What's done:"
commit_pattern="(Merge (remote-tracking )?branch|### What's done:)"
error_msg="Your commit message doesn't match the pattern $commit_pattern. Please fix it."

if [[ ! $( cat "$1" ) =~ $commit_pattern ]]
Expand Down

0 comments on commit 8f93e46

Please sign in to comment.