Skip to content

Commit b5a054a

Browse files
authored
Update commit-msg
1 parent 1497365 commit b5a054a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/git-hooks/commit-msg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ branch_name=$(git rev-parse --abbrev-ref HEAD)
2525
if [[ $branch_name =~ $BRANCH_PATTERN ]]; then
2626
ticket_id="${BASH_REMATCH[1]}"
2727
# Prepend the ticket ID to the commit message
28-
echo "$ticket_id: $commit_message" > "$1"
28+
echo "$ticket_id $commit_message" > "$1"
2929
exit 0
3030
else
3131
echo "Error: Commit message must start with the pattern 'T-0000000' or the branch name must follow 'YYYYMM_T-XXXXXXXX__description' You can opt out of this rule by passing the '--no-verify' argument in the git commit command."

0 commit comments

Comments
 (0)