-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Implement the explicit automergeStrategy
for the GitHub platform.
#10869
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
Comments
Do we still want to work on this issue? Renovate can now put its PRs in GitHub's Merge Queue. Does that change anything for us? In any case, we still mention the
The general Footnotes |
It's of less value if merge queue becomes common/standard. From https://docs.github.com/en/repositories/configuring-branches-and-merges-in-your-repository/configuring-pull-request-merges/managing-a-merge-queue#managing-a-merge-queue it indicates that a merge queue has one way to merge, so then we don't have to choose, we just queue.
Isn't the default value |
i think this is still valuable, as not all users will use the new merge queue feature but have multiple merge strategies enabled |
It looks like Renovate ignores the
If that quote is correct (check the code to see the actual behavior maybe?), then I probably should add an admonition to the |
maybe just take some time to implement this feature. should be doable in a couple of hours 😜 |
Hey there, I'm the original author of that line. Apologies for any confusion it causes — I know a lot of my other comments have been rewritten to use more approachable language, and this might just be another one of them. The confusion is coming from what "Unset" and "Set to |
Reading through all of this I am not sure if I understand the current state. Setting |
The "current state" is that this issue is open, which means that feature is not yet implemented for github. Renovate attempts to discover which merge methods are allowed for the repo: renovate/lib/modules/platform/github/index.ts Lines 496 to 505 in 650adbd
GitHub lets you control which merge types are allowed, if you configure that then naturally Renovate won't be able to bypass those and will follow whatever is configured. I also recommend using GitHub-native automerge |
@rarkins thank you very much for your quick summary. Until then no automerge for us. |
If
|
Let's log a warning if it's invalid and treat that as "no strategy" if so |
🎉 This issue has been resolved in version 39.185.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
What would you like Renovate to be able to do?
The
automergeStrategy
configuration item introduced in #10627 should be implemented for the GitHub platform, allowing users to configure the explicit merge strategy used by Renovate when automerging pull requestsDid you already have any implementation ideas?
The optional
MergeStrategy
argument can be provided to the GitHubmergePr
implementation.The current implementation uses the merge strategy configured on the repository at the time it is internally constructed, with preferences based on which features are allowed. The Renovate-specific strings for automergeStrategy can be mapped to GitHub-specific strings when submitting the merge request to GitHub or aborted if the configured strategy is not listed as available.If #10830 has been implemented, the arguments to
mergePr
may be different than what has been listed here. We should also remember to clean up the missing feature notice inlib/platform/github/index.md
and update the description indocs/usage/configuration-options.md
if necessary.The text was updated successfully, but these errors were encountered: