Skip to content

Commit a33fe53

Browse files
authored
Merge pull request #190 from neo4j/auto-cherry-picker
automatic cherry-picking
2 parents a05a461 + 33a21a0 commit a33fe53

File tree

2 files changed

+36
-0
lines changed

2 files changed

+36
-0
lines changed

.backportrc.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"repoOwner": "Neo4j",
3+
"repoName": "docs-graphql",
4+
"prTitle": "[Cherry-pick][{{targetBranch}}] {{commitMessages}}"
5+
}

.github/workflows/auto-backport.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: auto-cherry-pick
2+
on:
3+
pull_request_target:
4+
types: ["labeled", "closed"]
5+
6+
jobs:
7+
backport:
8+
name: Cherry-pick PR
9+
runs-on: [ubuntu-latest]
10+
if: |
11+
github.event.pull_request.merged == true
12+
&& contains(github.event.pull_request.labels.*.name, 'auto-cherry-pick')
13+
&& (
14+
(github.event.action == 'labeled' && github.event.label.name == 'auto-cherry-pick')
15+
|| (github.event.action == 'closed')
16+
)
17+
steps:
18+
- name: Cherry-pick action
19+
uses: sorenlouv/backport-github-action@929f69d04adbc196d982e60f02837b6cc00b3129
20+
with:
21+
github_token: ${{ secrets.GITHUB_TOKEN }}
22+
auto_backport_label_prefix: auto-cherry-pick-to-
23+
add_original_reviewers: true
24+
25+
- name: Info log
26+
if: ${{ success() }}
27+
run: cat ~/.backport/backport.info.log
28+
29+
- name: Debug log
30+
if: ${{ failure() }}
31+
run: cat ~/.backport/backport.debug.log

0 commit comments

Comments
 (0)