Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -8,21 +8,17 @@ permissions:
contents: write # so it can comment
pull-requests: write # so it can create pull requests
jobs:
backport:
name: Backport pull request
cherry-pick:
name: Cherry-pick pull request
runs-on: ubuntu-latest

# Only run when pull request is merged
# or when a comment starting with `/cherry-pick` is created by someone other than the CI bot
if: >
(
github.event_name == 'pull_request_target' &&
github.event.pull_request.merged
) || (
github.event_name == 'issue_comment' &&
github.event.issue.pull_request &&
github.event.comment.user.id != 278318962 &&
startsWith(github.event.comment.body, '/cherry-pick')
contains(github.event.comment.body, '/cherry-pick')
)
steps:
- uses: actions/create-github-app-token@v3
Expand All @@ -31,8 +27,8 @@ jobs:
app-id: ${{ vars.CI_APP_ID }}
private-key: ${{ secrets.CI_APP_KEY }}
- uses: actions/checkout@v6
- name: Create backport pull requests
uses: korthout/backport-action@v4
- name: cherry-pick pull request
uses: creydr/cherry-pick-action@v1
with:
github_token: ${{ steps.app-token.outputs.token }}
add_author_as_assignee: true
Expand Down
Loading