Skip to content

Commit

Permalink
Add support for backport command (eclipse-cdt#849)
Browse files Browse the repository at this point in the history
  • Loading branch information
jonahgraham authored Jun 28, 2024
1 parent 597eda2 commit 97f3d9a
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .backportrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"repoOwner": "eclipse-cdt",
"repoName": "cdt",
"targetBranchChoices": ["tycho-cdt_11_6"],
"branchLabelMapping": {
"^backport-to-(.+)$": "$1"
},
"multipleCommits": true
}
25 changes: 25 additions & 0 deletions .github/workflows/backport.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Automatic backport action

on:
pull_request_target:
types: ["labeled", "closed"]

jobs:
backport:
name: Backport PR
runs-on: ubuntu-latest
steps:
- name: Backport Action
uses: sorenlouv/[email protected]
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
auto_backport_label_prefix: backport-to-
add_original_reviewers: true

- name: Info log
if: ${{ success() }}
run: cat ~/.backport/backport.info.log

- name: Debug log
if: ${{ failure() }}
run: cat ~/.backport/backport.debug.log

0 comments on commit 97f3d9a

Please sign in to comment.