Skip to content

Commit 7783632

Browse files
Apply suggestions from code review
Co-authored-by: Richard Sill <[email protected]>
1 parent fbe6118 commit 7783632

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

.github/workflows/auto-backport.yml

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,24 @@
11
name: auto-cherry-pick
22
on:
33
pull_request_target:
4-
types: ["labeled", "closed"]
4+
types: ["closed"]
55

66
jobs:
77
backport:
88
name: Cherry-pick PR
99
runs-on: [ubuntu-latest]
1010
if: |
1111
github.event.pull_request.merged == true
12-
&& contains(github.event.pull_request.labels.*.name, 'auto-cherry-pick')
13-
&& (
14-
(github.event.action == 'labeled' && github.event.label.name == 'auto-cherry-pick')
15-
|| (github.event.action == 'closed')
12+
&& contains(github.event.pull_request.labels.*.name, 'cherry-pick')
13+
&& github.event.action == 'closed'
1614
)
1715
steps:
1816
- name: Cherry-pick action
1917
uses: sorenlouv/backport-github-action@929f69d04adbc196d982e60f02837b6cc00b3129
2018
with:
2119
github_token: ${{ secrets.GITHUB_TOKEN }}
22-
auto_backport_label_prefix: auto-cherry-pick-to-
23-
add_original_reviewers: true
20+
auto_backport_label_prefix: cherry-pick-to-
21+
add_original_reviewers: false
2422

2523
- name: Info log
2624
if: ${{ success() }}

0 commit comments

Comments
 (0)