forked from kubernetes-sigs/cluster-api
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
3acb212
commit 3479ca4
Showing
2 changed files
with
47 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
{ | ||
"repoOwner": "spectrocloud", | ||
"repoName": "cluster-api", | ||
"editor": "code", | ||
|
||
"targetBranchChoices": ["spectro-master", "spectro-release-4.5"], | ||
"mainline": 1, | ||
"autoMerge": false, | ||
"autoMergeMethod": "squash", | ||
"targetPRLabels": ["ok-to-test"], | ||
"commitConflicts": true, | ||
"branchLabelMapping": { | ||
"^backport-(.+)$": "$1" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
name: Backport | ||
|
||
on: | ||
pull_request_target: | ||
types: ["labeled", "closed"] | ||
|
||
jobs: | ||
backport: | ||
name: Backport PR | ||
runs-on: ubuntu-latest | ||
if: | | ||
github.event.pull_request.merged == true | ||
&& contains(github.event.pull_request.labels.*.name, 'auto-backport') | ||
&& ( | ||
(github.event.action == 'labeled' && github.event.label.name == 'auto-backport') | ||
|| (github.event.action == 'closed') | ||
) | ||
steps: | ||
- name: Backport Action | ||
uses: sqren/[email protected] | ||
with: | ||
github_token: ${{ secrets.GITHUB_TOKEN }} | ||
auto_backport_label_prefix: backport- | ||
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 |