-
Notifications
You must be signed in to change notification settings - Fork 272
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
Reuse existing pull request in increment plugin workflow #2874
Reuse existing pull request in increment plugin workflow #2874
Conversation
Not all plugins can immediately merge changes from this workflow and need to add changes before the generated pull request can be merged. Aspiring issue: opensearch-project/security#2210 (comment) Signed-off-by: Peter Nied <petern@amazon.com>
FYI @DarshitChanpura |
Codecov Report
@@ Coverage Diff @@
## main #2874 +/- ##
============================================
- Coverage 93.80% 93.72% -0.08%
============================================
Files 213 158 -55
Lines 4389 4401 +12
Branches 10 0 -10
============================================
+ Hits 4117 4125 +8
- Misses 266 276 +10
+ Partials 6 0 -6
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. |
https://github.com/actions/checkout#fetch-all-history-for-all-tags-and-branches Signed-off-by: Peter Nied <petern@amazon.com> Signed-off-by: Peter Nied <peternied@hotmail.com>
@prudhvigodithi Anything else you'd like to see in this pull request? |
Hey @peternied thanks, just got pulled out of this, one qq did you test with this change in your local fork, that it creates a PR with version increment and then does not override the changes (made while the a PR is open) upon re-push (with workflow re run) ? |
I did not test it, is there documentation for how to do that? |
Hey @peternied |
I sense that this scenario will only come into play when an auto-cut PR branch for version increment is deleted and the bot attempts to looks for it. Am I correct? |
Hey @DarshitChanpura this is moreover related to retain the changes pushed to the version increment branch, so if a PR is open for a version increment and a user pushes some new changes, the AUTO version increment should retain those changes and not override the changes pushed by the user. @peternied please add if i'm missing anything. |
Ahh.. got it.. thank you @prudhvigodithi ! |
@prudhvigodithi I'm not sure how to setup the secrets in my forked repository, can you help me figure out how to generate the |
Hey @peternied thanks for waiting just getting back on this, you can generate your own app and use that and should work as you are testing on your forked repo, another way is to use the API Token by adding it to the secrets, this should be easy for testing with only change on the line as follows (
|
@prudhvigodithi After playing around with this workflow I tested it, and it didn't work because that isn't how the create PR workflow is built. I'm going to abandon this, maybe someone else can look into it at a future point in time |
Description
Not all plugins can immediately merge changes from this workflow and need to add changes before the generated pull request can be merged. This update prevents that existing branch from being overridden if the job is re-run while we wait for health builds.
Aspiring issue: opensearch-project/security#2210 (comment)
Issues Resolved
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.