From a0c762758439d31a6cb4eb1216d07fe69fcef7bd Mon Sep 17 00:00:00 2001 From: Peter L Jones Date: Wed, 18 Dec 2024 11:13:04 +0000 Subject: [PATCH] Fixes 3318: Anchor check for CHANGELOG tag --- tools/changelog-helper.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/changelog-helper.sh b/tools/changelog-helper.sh index bfc58544d0..0826c0f910 100755 --- a/tools/changelog-helper.sh +++ b/tools/changelog-helper.sh @@ -183,7 +183,7 @@ check_or_add_pr() { fi local title_suggestion_in_pr title_suggestion_in_pr=$(gh pr view "$id" --json body,comments,reviews --jq '(.body), (.comments[] .body), (.reviews[] .body)' | - grep -oP '\bCHANGELOG:\s*\K([^\\]{5,})' | tail -n1 | sanitize_title || true) + grep -oP '^\bCHANGELOG:\s*\K([^\\]{5,})' | tail -n1 | sanitize_title || true) if [[ "${title_suggestion_in_pr}" ]]; then title="${title_suggestion_in_pr}" if [[ "${title_suggestion_in_pr}" == "SKIP" ]]; then