Skip to content

Commit aa51c9b

Browse files
authored
Add the Backport GitHub Action workflow, which automatically backports PRs when you add the backport label (#62)
* Add the `Backport` GitHub Action workflow, which automatically backports PRs when you add the backport label * Enable the `Backport` workflow for pull requests that were made from forks See tibdex/backport#77 for details
1 parent 8cf1c26 commit aa51c9b

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

.github/workflows/backport.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
name: Backport
2+
on:
3+
pull_request_target:
4+
types:
5+
- closed
6+
- labeled
7+
jobs:
8+
backport:
9+
runs-on: ubuntu-18.04
10+
name: Backport
11+
if: github.event.pull_request.merged
12+
steps:
13+
- name: Backport
14+
uses: tibdex/backport@v1
15+
with:
16+
github_token: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)