Skip to content

Commit

Permalink
Merge pull request #937 from Accenture/bugfix/936-commit-msg-hook-doe…
Browse files Browse the repository at this point in the history
…s-not-accept-standard-revert-message

bugfix/#936: allow "Revert ..." commit messages
JoernBerkefeld authored May 26, 2023

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
2 parents dbb2036 + 5ab2c35 commit 6250cf9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .husky/commit-msg
Original file line number Diff line number Diff line change
@@ -2,7 +2,7 @@
. "$(dirname "$0")/_/husky.sh"
INPUT_FILE=$1
START_LINE=`head -n1 $INPUT_FILE`
PATTERN="^(#[[:digit:]]|Merge)"
PATTERN="^(#[[:digit:]]|Merge|Revert)"

if ! [[ "$START_LINE" =~ $PATTERN ]] ; then
echo "Bad commit message, see example: \"#431 commit message\", you provided: \"$START_LINE\""

0 comments on commit 6250cf9

Please sign in to comment.