Skip to content

Commit

Permalink
Add backport action
Browse files Browse the repository at this point in the history
This makes it easier to backport PRs to other branches
  • Loading branch information
sveitser committed Oct 2, 2024
1 parent b0604bb commit 8a6d253
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions .github/workflows/backport.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# Create a backport PR to branch "foo" from a merged PR by adding a PR label "backport foo"
name: Backport merged pull request
on:
pull_request_target:
types: [closed]
permissions:
contents: write # so it can comment
pull-requests: write # so it can create pull requests
jobs:
backport:
name: Backport pull request
runs-on: ubuntu-latest
# Don't run on closed unmerged pull requests
if: github.event.pull_request.merged
steps:
- uses: actions/checkout@v4
- name: Create backport pull requests
uses: korthout/backport-action@v3

0 comments on commit 8a6d253

Please sign in to comment.