-
Notifications
You must be signed in to change notification settings - Fork 1k
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
Request: merge/rebase dependabot PRs in a queue #2323
Comments
Another way of solving this could be using grouped updates (#1190). |
If you don't mind adding another bot I built an open source GitHub bot called Kodiak that efficiently updates and merges PRs. With default settings each PR would only be updated prior to merge to prevent wasting CI minutes. With efficient updates you'd get 4 rebase updates instead of 10. There's a lot of other merge bots to look at too: https://kodiakhq.com/docs/prior-art-and-alternatives |
This may become possible with the recent addition of Merge Queues to GitHub 1. Footnotes
|
Since by default Dependabot will automatically rebase out of date PRs, this would probably only work if you also updated Dependabot with |
Another option to reduce CI runs is to use the recently announced Merge Queue feature: Note that this solves for PR rebases, but not Dependabot rebases... when Dependabot rebases, it's effectively re-calling the package manager to re-resolve the manifest / lockfile. For example, if you bump one dep that changes the indirect constraint on another package, that may affect the outcome of the resolving... a normal PR rebase won't pick that up so could result in breakage. |
Yeah, in my case, I had mergify set to comment It looks like the native implementation would work well for the easy flow. Replacing the dependabot rebase is harder though since iirc github action comments can't trigger dependabot commands... |
Update: We've started doing some grouped updates work! This particular issue might not be part of the first ship but if you want to track our updates, do follow #1190. |
Closing this out as we've officially released grouped version updates; please feel free to reopen or reach out if there are more questions or feedback. |
Currently dependabot rebases PRs individually. This is a problem when you have the 'require branches to be up to date' protection because it might have to update several times (and use lots of github action minutes).
Say I have 5 dependabot PRs, they all run the build, then one merges automatically, then the other 4 rebase and rerun the build again and so on. Worst case it runs the build 15 times.
Is it possible dependabot could realise there are other dependabot PRs and update/merge them in a kind of queue?
The text was updated successfully, but these errors were encountered: