-
-
Notifications
You must be signed in to change notification settings - Fork 9.7k
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
brew bump*
commands should enable auto-merge
#14538
Comments
I note that we can't really do auto-merge properly on homebrew-core as-is, though, because we don't have required CI jobs. |
Auto-merge is now automatically enabled for maintainer version bumps in The same can be done when it is possible to have a required check in |
Thanks @reitermarkus. @Homebrew/core what would you think about having required builds again that requires you to do a manual override (i.e. click the merge button more than once) to merge with the merge button? I would give you all |
But we mainly don't use the merge button in homebrew/core? We still need to pull the bottles somehow. Are we going to change our workflows? Sorry, I'm a bit lost with this thread 😅. |
Same, I'm not sure how we could do this in core. |
Update: I figured that I might have misunderstood how this mechanism works. Since review is still required: I guess pre-releases are not a concern. But if I understand this correctly now, I'm not sure if that would make much difference, since it's usually @BrewTestBot that handles the merge hourly. |
@dawidd6 @SMillerDev @ZhongRuoyu Sorry, to clarify:
|
Somewhat unrelated to this thread:
|
The ideal end flow for Homebrew/core and Homebrew/cask bumps should be:
|
So you want to auto-merge when two maintainers have approved a PR? |
@reitermarkus Every homebrew-core or homebrew-cask PR should have at least one person, other than the person who created the PR, giving a ✅ before it is merged. If it's auto-bumped by @BrewTestBot: only one maintainer needs to ✅ it. If it's bumped by a maintainer: another maintainer should ✅ it other than the one who created it. Make sense? |
You can't ✅ your own PR though, so GitHub sets those rules for us already if we require one ✅ . |
Okay, so exactly like
For |
That's where merge queue comes in, I suppose. The PR goes into the merge queue where we run our workflow that uploads the bottle and pushes the bottle commit back to PR's branch or straight to master? I'm still a bit confused how this would exactly work. |
I think if/when we land Homebrew/homebrew-core#125556: we should be able to do this without the need for the merge queue. |
Pushing to the PR branch has two issues:
|
@reitermarkus Easily dealt with: can just disable this.
We will make this a required part of contributing to Homebrew. |
I'd argue disabling required approvals is more of a workaround than a true solution. Maybe we can have BrewTestBot re-approve the PR once the bottles are pushed. |
This may be difficult for PRs from org forks. Just an FYI -- we can decide that we don't care, but I think it's important that this is made explicit. |
Could do but I think I'd ideally like to get to a point where BrewTestBot has far reduced permissions for this stuff. Personally, I'm not terribly convinced that bots should be able to do things like this (long-term).
@carlocab Yeh. We'll need a flow for figuring out how to handle this when it "doesn't work" e.g. a maintainer manually intervenes. Similarly, we may want to consider adding a check for this (somehow?) before PRs are ready to merge so we don't waste time on a branch that will need moved. |
No longed needed by homebrew/core or homebrew/cask. See discussion in #15784 |
Verification
brew install wget
. If they do, open an issue at https://github.com/Homebrew/homebrew-core/issues/new/choose instead.Provide a detailed description of the proposed feature
This could be either conditional through e.g.
--automerge
or through an environment variable such asHOMEBREW_BUMP_AUTO_MERGE
.This requires write access to enable so will be limited to maintainers.
Once enabled this will merge when the branch protection requirements are met i.e. a ✅ and, on most repositories, passing CI.
This is possible when using GitHub's Pull's API and setting the
auto_merge
attribute.What is the motivation for the feature?
Save maintainers time and clicks when reviewing PRs from other prolific maintainers.
How will the feature be relevant to at least 90% of Homebrew users?
Maintainers with more time will do more things users like
What alternatives to the feature have been considered?
Use an auto-merge action to enable this on all PRs: https://github.com/marketplace/actions/enable-pull-request-automerge
The text was updated successfully, but these errors were encountered: