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