-
Notifications
You must be signed in to change notification settings - Fork 82
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
Enable backport automation with mergify #143
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,31 @@ | ||||||
pull_request_rules: | ||||||
- name: ask to resolve conflict | ||||||
conditions: | ||||||
- conflict | ||||||
actions: | ||||||
comment: | ||||||
message: | | ||||||
This pull request is now in conflicts. Could you fix it @{{author}}? 🙏 | ||||||
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
|
||||||
To fixup this pull request, you can check out it locally. See documentation: https://help.github.com/articles/checking-out-pull-requests-locally/ | ||||||
``` | ||||||
git fetch upstream | ||||||
git checkout -b {{head}} upstream/{{head}} | ||||||
git merge upstream/{{base}} | ||||||
git push upstream {{head}} | ||||||
``` | ||||||
- name: backport patches to 7.x branch | ||||||
conditions: | ||||||
- base=master | ||||||
- label=v7.13.0 | ||||||
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. We will need some automation in the future to bump the version when required 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. Just so I am sure I understand how this works. If we set the 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. Exactly, but only when it gets merged. To illustrate the above, please see the below example for one of the repositories where this service is configured:
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. Great! |
||||||
actions: | ||||||
backport: | ||||||
branches: | ||||||
- 7.x | ||||||
- name: backport patches to 7.12 branch | ||||||
conditions: | ||||||
- base=master | ||||||
- label=v7.12.0 | ||||||
actions: | ||||||
backport: | ||||||
branches: | ||||||
- 7.12 |
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.
author
won't be resolved correctly -> Mergifyio/mergify#1096There 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.
See v1v/apm-pipeline-library#19 (comment)