-
-
Notifications
You must be signed in to change notification settings - Fork 9.9k
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
Improve duplicate pull request handling #18206
Improve duplicate pull request handling #18206
Conversation
GitHub.check_for_duplicate_pull_requests
5671ff1
to
0f45691
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Makes sense, I think.
Any reason why we have different handling for bump-cask-pr
and bump-formula-pr
?
Also, do we not need changes for dev-cmd/bump.rb
too?
@carlocab Can you elaborate? They should be functionally equivalent, they just use different code paths to get there. I'm deliberately trying to avoid changing behaviour beyond just the targeted change here.
It doesn't call |
Yes, sorry, I was confused by the cosmetic differences!
You're right that it doesn't, but the problem that motivates #18205 isn't just because of In particular, my impression is that when BrewTestBot fails to open a version bump PR in Homebrew/core, We can that in this workflow run. Here, we see BrewTestBot calling Does that make sense? |
@carlocab makes sense but: ugh, this is why I like consistency. I'll likely port |
Same! But this is part of why I wanted to punt; the code is kinda all over the place. |
- change the messaging depending on how confident we are that we're actually looking at duplicates i.e. we're not confident without a version number supplied - similarly, just warn instead of failing with an error (and no override) if we're not confident that we're looking at duplicates because a version wasn't supplied - change `bump-cask-pr` and `bump-formula-pr` to always check for all pull requests with the new version number (to allow failing on this) rather than only checking closed pull requests with a version number - change `bump` to check for definite/maybe duplicate PRs and only exit if they are definitely duplicates - cleanup some variable usage to DRY things up a bit
0f45691
to
fe909c4
Compare
GitHub.check_for_duplicate_pull_requests
I didn't but: I should have fixed the |
Let's give this a go. |
bump-cask-pr
andbump-formula-pr
to always check for all pull requests with the new version number (to allow failing on this) rather than only checking closed pull requests with a version numberbump
to check for definite/maybe duplicate PRs and only exit if they are definitely duplicatesInspired by conversation in #18205