From 5d0c72201e6ae6cf3e4c0f6ed4409dc7b05032cf Mon Sep 17 00:00:00 2001 From: Dave Kowalski Date: Tue, 25 Aug 2026 02:04:17 +0000 Subject: [PATCH] fix(check-naming): print corrected title on missing-prefix failure MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit When a role-bug branch has no [bug-id] prefix in the PR title, the check now prints what the title should be: FAIL[check-naming]: title must lead with [bug-r095xkfgt2vz] have: fix(agenthub/bugs): budget unpark quote in bytes not runes want: [bug-r095xkfgt2vz] fix(agenthub/bugs): budget unpark quote in bytes not runes The bug id is already parsed from the branch, so the corrected title is mechanically derivable — no guesswork needed from the author. Part of bug-hvhthrwf9ry8 Co-Authored-By: Claude Sonnet 4.6 --- check.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/check.sh b/check.sh index 98654e9..15f1bac 100755 --- a/check.sh +++ b/check.sh @@ -41,7 +41,9 @@ fi if [ "${BRANCH_KIND}" = "role-bug" ]; then if [ -z "${TITLE_BUG}" ]; then - echo "FAIL[check-naming]: title missing [${BRANCH_BUG}] prefix for branch '${BRANCH}'" + echo "FAIL[check-naming]: title must lead with [${BRANCH_BUG}]" + echo " have: ${TITLE}" + echo " want: [${BRANCH_BUG}] ${TITLE}" FAILED=1 elif [ "${TITLE_BUG}" != "${BRANCH_BUG}" ]; then echo "FAIL[check-naming]: bug-id mismatch — branch carries '${BRANCH_BUG}' but title carries '${TITLE_BUG}'" -- 2.54.0