Skip to content

Commit

Permalink
Merge pull request #352 from leofang/backport_ci
Browse files Browse the repository at this point in the history
Add a backport CI workflow
  • Loading branch information
leofang authored Jan 4, 2025
2 parents 9e17c9d + 661c67a commit aba2cd7
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/backport.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Backport merged pull request

on:
pull_request_target:
types: [closed, labeled]
branches:
- main

permissions:
contents: write # so it can comment
pull-requests: write # so it can create pull requests

jobs:
backport:
name: Backport pull request
if: ${{ github.repository_owner == 'nvidia' &&
github.event.pull_request.merged == true
}}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Create backport pull requests
uses: korthout/backport-action@v3
with:
copy_assignees: true
copy_labels_pattern: true
copy_requested_reviewers: true
label_pattern: to-be-backported
target_branches: 11.8.x

0 comments on commit aba2cd7

Please sign in to comment.