@@ -2,7 +2,7 @@ # # Auto-prefix commit messages based on branch name: # fix/..., feature/..., release/..., chore/... -# -> "refs # " +# -> "refs #: " # set -eu @@ -38,11 +38,11 @@ case "$FIRST_LINE" in ;; esac -PREFIX="refs #${TASK_NUMBER} " +PREFIX="refs #${TASK_NUMBER}: " # Already has the right prefix (or already references the number at start) -> no-op. case "$FIRST_LINE" in - "$PREFIX"*|"refs #${TASK_NUMBER} "*) + "$PREFIX"*|"refs #${TASK_NUMBER} "*|"refs #${TASK_NUMBER}:"*) exit 0 ;; esac