Skip to content

Commit

Permalink
TECH: fix pre-commit hook
Browse files Browse the repository at this point in the history
  • Loading branch information
eakurnikov committed Dec 6, 2022
1 parent d90255a commit f1d6cfc
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion .githooks/pre-commit
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ branchNamePattern="^(ISSUE-\d+(-[^\W_]+)*|TECH(-[^\W_]+)+|HEAD)$"

if ! echo "$currentBranch" | grep "$branchNamePattern" -qE; then
echo >&2 "ERROR: pre-commit git hook failed."
"Commit message must start with prefix containing issue id or the word TECH and match the pattern: \"{ISSUE-1234|TECH}: git commit message\"."
echo >&2 "Branch name must:"
echo >&2 "- start with the issue id: \"ISSUE-1234{-optional-description}\""
echo >&2 "- or match the pattern: \"TECH-required-description\""
Expand Down

0 comments on commit f1d6cfc

Please sign in to comment.