Compare commits
1 commit
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
d1b1ded0e6 |
2 changed files with 3 additions and 8 deletions
9
.github/workflows/command-backport.yml
vendored
9
.github/workflows/command-backport.yml
vendored
|
|
@ -157,18 +157,15 @@ jobs:
|
||||||
TITLE: ${{ steps.pr.outputs.title }}
|
TITLE: ${{ steps.pr.outputs.title }}
|
||||||
ACTOR: ${{ github.event.comment.user.login }}
|
ACTOR: ${{ github.event.comment.user.login }}
|
||||||
run: |
|
run: |
|
||||||
# the release line the branch was cut from, 0.313 for release/0.313.1
|
|
||||||
line=$(echo "${TARGET#release/}" | cut -d. -f1,2)
|
|
||||||
|
|
||||||
# the pull request is authored by the deploy token, so assign the
|
# the pull request is authored by the deploy token, so assign the
|
||||||
# requester. the body stays empty, squashing it would carry the text
|
# 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
|
# the title stays untouched so the changelog filters and groups still
|
||||||
# see the original prefix, goreleaser strips it from the release notes
|
# see the original prefix, the backport label identifies the pull request
|
||||||
url=$(gh pr create \
|
url=$(gh pr create \
|
||||||
--base "$TARGET" \
|
--base "$TARGET" \
|
||||||
--head "$BRANCH" \
|
--head "$BRANCH" \
|
||||||
--title "$TITLE [$line backport]" \
|
--title "$TITLE" \
|
||||||
--label backport \
|
--label backport \
|
||||||
--assignee "$ACTOR" \
|
--assignee "$ACTOR" \
|
||||||
--body "")
|
--body "")
|
||||||
|
|
|
||||||
|
|
@ -71,8 +71,6 @@ snapshot:
|
||||||
|
|
||||||
changelog:
|
changelog:
|
||||||
sort: asc
|
sort: asc
|
||||||
# drop the marker the backport command appends to the pull request title
|
|
||||||
format: '{{ .SHA }} {{ reReplaceAll ` \[\d+\.\d+ backport\]` .Message "" }}'
|
|
||||||
filters:
|
filters:
|
||||||
exclude:
|
exclude:
|
||||||
- "^chore"
|
- "^chore"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue