-
Notifications
You must be signed in to change notification settings - Fork 63
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
Add auto backport functionality to backport PRs for releases #108
Comments
This is a great idea, which would save tons of pain in handling backports!
|
@cliu123 , we implemented this in the OpenSearch repo PR opensearch-project/OpenSearch#1600. The action works based on the labels added on the PR. So if a PR is to be backported to lets say 1.x branch, the label |
Is there a guide to branch conventions within OpenSearch projects? I did not see them in the DEVELOPER_GUIDE. Data Prepper (which is not an OpenSearch plugin) doesn't use a |
@dlvenable thats good question. We generally follow the convention of |
Related issue: opensearch-project/OpenSearch#1712. I am working on fixing the permissions issue. |
The permissions issue is resolved. The updated backport workflow is https://github.com/opensearch-project/OpenSearch/blob/main/.github/workflows/backport.yml. The custom branch naming helps with maintaining proper branch protection rules. Other improvements to be done are added here: opensearch-project/OpenSearch#1962. |
Auto backport workflowWhy Auto-backport? When the auto backport workflow is integrated with a repo, the following features are available:
An example backport PR: opensearch-project/OpenSearch#2079 Note: Auto backport workflow can fail if it finds merge conflicts while cherry-picking a commit to 1.x. In such cases, the opensearch-trigger-bot will comment on the original PR with the steps to take. How to integrate?
Thats it! Your backport workflow is integrated and ready to use. |
@VachaShah lets promote this doc into something in a .md in this repo? |
Sure I will add this in a |
I've re-labelled this 2.0 so we don't lose it. |
@VachaShah Can we close this? |
Yes closing this since all the tasks are done. |
In order to avoid creating backport PRs for each release and miss some of them in the process, we can add a Github action
backport.yml
that would create automatic backport PRs when the original PRs are labeled accordingly. This has been done for OpenSearch repo in PR opensearch-project/OpenSearch#1600.Related documentation: https://github.com/opensearch-project/opensearch-plugins/blob/main/BACKPORT.md
Creating this meta issue to track this feature for plugins for the next release.
The text was updated successfully, but these errors were encountered: