Skip to content

Commit

Permalink
Merge pull request #18412 from chenrui333/replace-remote-repo
Browse files Browse the repository at this point in the history
  • Loading branch information
carlocab authored Sep 25, 2024
2 parents 7d23111 + 09b71be commit 80ebf59
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Library/Homebrew/dev-cmd/bump-cask-pr.rb
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,7 @@ def replace_version_and_checksum(cask, new_hash, new_version, replacement_pairs)

sig { params(cask: Cask::Cask, new_version: BumpVersionParser).void }
def check_pull_requests(cask, new_version:)
tap_remote_repo = cask.tap.full_name || cask.tap.remote_repo
tap_remote_repo = cask.tap.full_name || cask.tap.remote_repository

file = cask.sourcefile_path.relative_path_from(cask.tap.path).to_s
quiet = args.quiet?
Expand Down
2 changes: 1 addition & 1 deletion Library/Homebrew/dev-cmd/bump-formula-pr.rb
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ def run
# spamming during normal output.
Homebrew.install_bundler_gems!(groups: ["audit", "style"]) unless args.no_audit?

tap_remote_repo = formula.tap.full_name || formula.tap.remote_repo
tap_remote_repo = formula.tap.full_name || formula.tap.remote_repository
remote = "origin"
remote_branch = formula.tap.git_repository.origin_branch_name
previous_branch = "-"
Expand Down
2 changes: 1 addition & 1 deletion Library/Homebrew/dev-cmd/bump.rb
Original file line number Diff line number Diff line change
Expand Up @@ -270,7 +270,7 @@ def livecheck_result(formula_or_cask)
).returns T.nilable(T.any(T::Array[String], String))
}
def retrieve_pull_requests(formula_or_cask, name, version: nil)
tap_remote_repo = formula_or_cask.tap&.remote_repo || formula_or_cask.tap&.full_name
tap_remote_repo = formula_or_cask.tap&.remote_repository || formula_or_cask.tap&.full_name
pull_requests = begin
GitHub.fetch_pull_requests(name, tap_remote_repo, version:)
rescue GitHub::API::ValidationFailedError => e
Expand Down

0 comments on commit 80ebf59

Please sign in to comment.