bump-*-pr: fix an issue when using on taps with custom remote

This commit is contained in:
scientificworld 2023-03-29 20:05:16 +08:00
parent fb70af3977
commit 8589ca8d40
No known key found for this signature in database
GPG Key ID: 26E695328487D75E
2 changed files with 2 additions and 2 deletions

View File

@ -196,7 +196,7 @@ module Homebrew
end
def check_pull_requests(cask, state:, args:, version: nil)
tap_remote_repo = cask.tap.remote_repo || cask.tap.full_name
tap_remote_repo = cask.tap.full_name || cask.tap.remote_repo
GitHub.check_for_duplicate_pull_requests(cask.token, tap_remote_repo,
state: state,
version: version,

View File

@ -121,7 +121,7 @@ module Homebrew
# spamming during normal output.
Homebrew.install_bundler_gems!
tap_remote_repo = formula.tap.remote_repo
tap_remote_repo = formula.tap.full_name || formula.tap.remote_repo
remote = "origin"
remote_branch = formula.tap.path.git_origin_branch
previous_branch = "-"