From acd73bcb4f0dbbae96945183dffd3f5772cfc262 Mon Sep 17 00:00:00 2001 From: Oliver Davies Date: Sat, 26 Aug 2023 22:27:00 +0100 Subject: [PATCH] chore(git): change placeholder to `Refs:` This is more inline with the conventional commits approach and encourages it to be replaced manually if not being done with commit hooks. --- templates/git-hooks/prepare-commit-msg.twig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/git-hooks/prepare-commit-msg.twig b/templates/git-hooks/prepare-commit-msg.twig index 70d73bb..fbb6b36 100755 --- a/templates/git-hooks/prepare-commit-msg.twig +++ b/templates/git-hooks/prepare-commit-msg.twig @@ -20,6 +20,6 @@ if [ -f "${ISSUE_FILE}" ]; then ISSUE_ID=$(cat "${ISSUE_FILE}" | sed 's/ /, /g') if [ -n "${ISSUE_ID}" ]; then - sed -i.bak "s/# ISSUE_ID/Refs: $ISSUE_ID/" "$1" + sed -i.bak "s/# Refs:/Refs: $ISSUE_ID/" "$1" fi fi