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-formula-pr blocks on closed versions #9269
Comments
I'm expecting Homebrew/homebrew-cask#93014 to be related |
I'd be interested in seeing cases where the current behavior isn't appropriate. I believe the intention has been to block if an open PR contains the formula name (indicating that there are currently proposed changes that should be resolved prior to doing a version bump) or if a closed PR has the exact name (indicating a previously-failed bump-formula-pr attempt). If after seeing that it makes sense to continue with the current open PR, or if the user can determine that whatever caused the closed PR to fail and it's been addressed, one can continue the PR with the |
This would also block python@3.9 updates while there are still PRs with As for the closed items it's either not an exact match, or githubs api is doing weird stuff. |
I don't think github's api allows you to search for PRs with an exact matching title. But we could fix the command to further filter the items returned by the api call down to only exact matches. |
Not sure if this is possible, but perhaps we could check if the pull request modifies the formula (i.e. check if it actually modifies |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. |
https://stackoverflow.com/a/64471155
|
Strangely enough, we already do this: https://github.com/Homebrew/brew/blob/8795895/Library/Homebrew/utils/github.rb#L624 So I'm not sure what's happening here |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. |
Bug report
brew update
and can still reproduce the problem?brew doctor
, fixed all issues and can still reproduce the problem?brew config
andbrew doctor
and included their output with your issue?What you were trying to do (and why)
Update a formula with
brew bump-formula-pr
What happened (include command output)
brew bump-formula-pr
often (but not always) stops me from submitting pull requests when there has been a pull request for the same software. I haven't really figured out when it happens exactly, but it sometimes blocks on closed pull requests, sometimes on open pull requests for older versions.What you expected to happen
Only block the command on an exact match with the version of an open PR.
Step-by-step reproduction instructions (by running
brew
commands)It's hard to reliably reproduce. I'll update this section the next time it happens
Output of
brew config
andbrew doctor
commandsnot relevant IMO.
The text was updated successfully, but these errors were encountered: