-
Notifications
You must be signed in to change notification settings - Fork 56
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
auto-cherry-pick for docs-cypher #1073
base: dev
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{ | ||
"repoOwner": "Neo4j", | ||
"repoName": "docs-cypher", | ||
"prTitle": "[Cherry-pick][{{targetBranch}}] {{commitMessages}}" | ||
} |
Original file line number | Diff line number | Diff line change | ||||||||
---|---|---|---|---|---|---|---|---|---|---|
@@ -0,0 +1,31 @@ | ||||||||||
name: auto-cherry-pick | ||||||||||
on: | ||||||||||
pull_request_target: | ||||||||||
types: ["labeled", "closed"] | ||||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||||||
|
||||||||||
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') | ||||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||||||
&& ( | ||||||||||
(github.event.action == 'labeled' && github.event.label.name == 'auto-cherry-pick') | ||||||||||
|| (github.event.action == 'closed') | ||||||||||
Comment on lines
+13
to
+15
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||||||
) | ||||||||||
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- | ||||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||||||
add_original_reviewers: true | ||||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||||||
|
||||||||||
- name: Info log | ||||||||||
if: ${{ success() }} | ||||||||||
run: cat ~/.backport/backport.info.log | ||||||||||
|
||||||||||
- name: Debug log | ||||||||||
if: ${{ failure() }} | ||||||||||
run: cat ~/.backport/backport.debug.log |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we need this file? I think it's needed only when using the cli tool, which we are not using.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
hm... the prTitle i think shows up on the auto-generated PRs 🤔