Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .backportrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"repoOwner": "Neo4j",
"repoName": "docs-operations",
"prTitle": "[Cherry-pick][{{targetBranch}}] {{commitMessages}}"
}
33 changes: 33 additions & 0 deletions .github/workflows/auto-backport.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: auto-cherry-pick
on:
pull_request_target:
types: ["labeled", "closed"]

jobs:
backport:
name: Cherry-pick PR
runs-on: [ubuntu-latest]
if: |
github.event.pull_request.merged == true
&& contains(github.event.pull_request.labels.*.name, 'auto-cherry-pick')
&& (
(github.event.action == 'labeled' && github.event.label.name == 'auto-cherry-pick')
|| (github.event.action == 'closed')
)
steps:
- name: Cherry-pick action
uses: sorenlouv/backport-github-action@929f69d04adbc196d982e60f02837b6cc00b3129
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
auto_backport_label_prefix: auto-cherry-pick-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