chore: keep the backport marker out of the release notes (#32392)

This commit is contained in:
andig 2026-08-01 14:04:10 +02:00 • committed by GitHub
parent 93b313352f
commit b9a1a94726
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 6 additions and 2 deletions

View file

@ -162,11 +162,13 @@ jobs:
# the pull request is authored by the deploy token, so assign the
# requester. the body stays empty, squashing it would carry the text
# into the release branch as the commit description
# into the release branch as the commit description.
# the marker trails the title so the changelog filters and groups still
# see the original prefix, goreleaser strips it from the release notes
url=$(gh pr create \
--base "$TARGET" \
--head "$BRANCH" \
--title "$line backport: $TITLE" \
--title "$TITLE [$line backport]" \
--label backport \
--assignee "$ACTOR" \
--body "")

View file

@ -67,6 +67,8 @@ snapshot:
changelog:
sort: asc
# drop the marker the backport command appends to the pull request title
format: '{{ .SHA }} {{ reReplaceAll ` \[\d+\.\d+ backport\]` .Message "" }}'
filters:
exclude:
- "^chore"