-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
Merge using comments #1355
Comments
To the Algolia team e.g. @samouss and @Haroenv, I often see you merging multiple PRs close together. Would this approach save you time? e.g. you manually review the PRs in a batch and add a comment "!merge" to each that is OK. Renovate will then merge them as fast as is possible allowing for any necessary conflict resolving, rebasing, retesting, etc. |
I'd like it more if a review would do this, rather than |
It's possible today, although perhaps with some warning. First of all, how that would work:
The warning is that maybe:
|
Those are good points, is there some way to check if reviewer can merge? |
If you have restricted who can merge to master in the repo (e.g. in branch protection settings you have listed individuals or teams with merge rights) then unfortunately Renovate cannot merge. This is because of a GitHub bug/limitation where they don't offer any way to add an app (bot) to that list so all apps get blocked from merging if you enable that type of branch protection. Otherwise, if you just mean users with write access to the repository vs read-only, then we can probably look that up. Please confirm if that's what you mean or if it's something else. |
Maybe.. we could also add a new config option to renovate's config that lets you define which users should merge if they review/approve the PR. |
I like the idea of using built-in functionality (reviewers) of the GitHub interface for this workflow. (I use the merge when pipeline succeeds feature in GitLab quite often to help queue up merge requests when several come in at once) |
This comment has been minimized.
This comment has been minimized.
Reopening to add this comment by @azu in #3172: Merge via comment is useful for me. UseCase: renovatebot/dependabot create same Pull Request to multiple repositories at same time. checkbox approach may not cover this case. |
GitHub's native automerge feature is a viable and someway better workaround for this |
Can you please give a link? I cannot find this feature by googling. |
Google for "GitHub automerge" |
Thanks, and excuse me for a bit of laziness. I was searching for “GitHub's native automerge feature”, and mostly only Dependabot-related articles came up. Here is the link for future strangers: https://docs.github.com/en/github/collaborating-with-pull-requests/incorporating-changes-from-a-pull-request/automatically-merging-a-pull-request |
Wanted to jump in here and provide an additional use case for merge using comments. We use Poetry to manage our Python dependencies, which breaks the lock file each time one dependency is updated. This means that there is a lot of time one has to wait before merging in a subsequent dependency (i.e. wait for a rebase with the correct lock file). It would be really convenient to have a "rebase & merge" comment option. |
Which platform/hosting mode are you using? |
We use the GitHub App. |
Rebasing should happen automatically in the GitHub app without requiring manual intervention. Please create a separate discussion topic if you're not seeing that and can provide some logs or other evidence to help pinpoint it |
Rebasing does happen automatically, it just takes a significant amount of time using Poetry (Between 10-15 minutes if manually triggered, 25-30 minutes if automatic). I can open another discussion topic, but I don't think this is a limitation in Renovate, but with Poetry itself. We had a similar problem on Dependabot, but having the rebase and merge problem made it easy to handle. |
Poetry may be slow and that's not Renovate's fault, but the following should be false:
Automatic rebasing should happen as fast/faster than you can achieve with manual, because the merging of any Renovate PR should trigger a priority job in the queue. I would have hoped that if you enable GitHub automerge in each PR and just leave them you should see them rebased until they are all merged (or failing tests). |
Such "semi-auto" merge will be useful. In my case, I don't want to merge everything manually, but I want to review the changelog of the package being updated and changes in my source code before merging them. Maybe it's possible to add an option that enables such "semi-auto" flow? For example, by adding a new checkbox to PRs? (like So
Or simply add |
|
Related discussion: |
SummaryHow about prioritizing: And closing these issues/discussions as won't do: That way the bulk of users have a good way to speed up the "merge multiple Renovate PRs" workflow. Why we opened this issueThis is the problem we wanted to solve by making a new "merge using comments" feature:
Changes since the issue was createdGitHub Merge QueueGitHub now has Merge Queue, 1 where you can approve a PR, put it in the Queue, and let GitHub merge when the tests pass. GitHub will make sure the combination of PRs passes the tests. You can use GitHub Merge Queue with Renovate. 2 GitLab has Merge Trains (we don't support that yet)We're going to a checkbox-based system?I think, in general, we're going towards a checkbox-based system? See:
Difficult to verify comment is allowed to mergeIf we want to keep this issue open, we still need to decide how to get Renovate to only accept merge comments from allowed users: Footnotes |
Scenario:
The result is that a reviewer/merger needs to keep checking back over a period of perhaps hours as they wait for tests to finish.
Solution:
Inspiration: https://github.com/uber-workflow/probot-app-merge-pr
The text was updated successfully, but these errors were encountered: