File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -8,21 +8,17 @@ permissions:
88 contents : write # so it can comment
99 pull-requests : write # so it can create pull requests
1010jobs :
11- backport :
12- name : Backport pull request
11+ cherry-pick :
12+ name : Cherry-pick pull request
1313 runs-on : ubuntu-latest
14-
15- # Only run when pull request is merged
16- # or when a comment starting with `/cherry-pick` is created by someone other than the CI bot
1714 if : >
1815 (
1916 github.event_name == 'pull_request_target' &&
2017 github.event.pull_request.merged
2118 ) || (
2219 github.event_name == 'issue_comment' &&
2320 github.event.issue.pull_request &&
24- github.event.comment.user.id != 278318962 &&
25- startsWith(github.event.comment.body, '/cherry-pick')
21+ contains(github.event.comment.body, '/cherry-pick')
2622 )
2723 steps :
2824 - uses : actions/create-github-app-token@v3
3127 app-id : ${{ vars.CI_APP_ID }}
3228 private-key : ${{ secrets.CI_APP_KEY }}
3329 - uses : actions/checkout@v6
34- - name : Create backport pull requests
35- uses : korthout/backport- action@v4
30+ - name : cherry-pick pull request
31+ uses : creydr/cherry-pick- action@v1
3632 with :
3733 github_token : ${{ steps.app-token.outputs.token }}
3834 add_author_as_assignee : true
You can’t perform that action at this time.
0 commit comments