Skip to content

Commit 4e22c4f

Browse files
authored
Merge pull request #303 from georchestra/backport-bot
chore: update backport bot
2 parents d027f36 + 5b6bf41 commit 4e22c4f

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

.github/workflows/backport.yml

+7-2
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,16 @@ name: Automatic backport action
22

33
on:
44
pull_request_target:
5-
types: ["closed"]
5+
types: ["closed", "labeled"]
6+
7+
permissions:
8+
contents: write # so it can comment
9+
pull-requests: write # so it can create pull requests
610

711
jobs:
812
backport:
913
name: Backport PR
14+
if: github.event.pull_request.merged == true && !(contains(github.event.pull_request.labels.*.name, 'backport'))
1015
runs-on: ubuntu-latest
1116
steps:
1217
- name: Backport Action
@@ -21,4 +26,4 @@ jobs:
2126

2227
- name: Debug log
2328
if: ${{ failure() }}
24-
run: cat ~/.backport/backport.debug.log
29+
run: cat ~/.backport/backport.debug.log

0 commit comments

Comments
 (0)