Repository navigation
fix: make homebrew tap update script retry-safe - #66
Merged
Merged
Conversation
MantasMiksys
approved these changes
Apr 6, 2026
Handle re-runs when the branch was pushed but PR creation failed (e.g. due to missing label). Checks for existing open PRs and remote branches before attempting to push or create a new PR. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Existing-PR and remote-branch checks now run before downloading archives and computing SHA256 hashes, avoiding unnecessary work on retries. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
designcode
force-pushed
the
feat/homebrew-tap
branch
from
April 6, 2026 15:33
2cf5e46 to
0ecef5c
Compare
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes and found 1 potential issue.
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit 0ecef5c. Configure here.
Contributor
|
🎉 This PR is included in version 2.16.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Handle re-runs when the branch was pushed but PR creation failed (e.g. due to missing label). Checks for existing open PRs and remote branches before attempting to push or create a new PR.
Note
Low Risk
Low risk: changes are limited to the Homebrew tap automation script, but could affect release/update CI behavior if the new PR/branch detection or
ghauth assumptions are wrong.Overview
Makes
scripts/update-homebrew.shidempotent on CI reruns by checking for an existing open PR for the version branch and exiting early.If the remote branch already exists but no PR is open, the script now skips re-downloading artifacts/pushing and directly creates the PR. It also exports
GH_TOKENonce forghCLI usage and drops the previously-required PR label flag.Reviewed by Cursor Bugbot for commit 0ecef5c. Bugbot is set up for automated code reviews on this repo. Configure here.