Skip to content

Commit

Permalink
[103] fixed minor issue
Browse files Browse the repository at this point in the history
  • Loading branch information
akidon0000 committed Mar 19, 2024
1 parent 4eece42 commit f2f79d8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .githooks/prepare-commit-msg
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ if ! echo "$COMMIT_MSG" | grep -qE "$PATTERN"; then
# 最初の一行の先頭に [{チケット番号}] を追加し、残りのメッセージを保持
NEW_COMMIT_MSG="[$TICKET_NAME] $FIRST_LINE\n$(tail -n +2 "$COMMIT_MSG_FILE_PATH")"
# 新しいコミットメッセージをファイルに書き込み
echo -e "$NEW_COMMIT_MSG" > "$COMMIT_MSG_FILE_PATH"
echo "$NEW_COMMIT_MSG" > "$COMMIT_MSG_FILE_PATH"
exit 0
fi

Expand Down

0 comments on commit f2f79d8

Please sign in to comment.