aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorMike McQuaid2016-08-14 09:43:24 +0100
committerGitHub2016-08-14 09:43:24 +0100
commit5b9fd5c82ccb9233013672168d48af73ae6b9b1f (patch)
treee7eef6f53b7aae226b998784fff61c8f3fb8825b /Library
parentb40b072ed8486f91f3951bdd19bea3f04af3e75b (diff)
parent7c807d347e6cba62e708058481c6996adfcef683 (diff)
downloadbrew-5b9fd5c82ccb9233013672168d48af73ae6b9b1f.tar.bz2
Merge pull request #707 from ilovezfs/pull-testing-job-non-core
pull: non-core tap support for Homebrew Testing jobs
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/cmd/pull.rb11
1 files changed, 9 insertions, 2 deletions
diff --git a/Library/Homebrew/cmd/pull.rb b/Library/Homebrew/cmd/pull.rb
index f93ad095a..24abbd938 100644
--- a/Library/Homebrew/cmd/pull.rb
+++ b/Library/Homebrew/cmd/pull.rb
@@ -52,9 +52,16 @@ module Homebrew
url = "https://github.com/Homebrew/homebrew-core/pull/#{arg}"
tap = CoreTap.instance
elsif (testing_match = arg.match %r{brew\.sh/job/Homebrew.*Testing/(\d+)/})
+ tap = ARGV.value("tap")
+ tap = if tap && tap.start_with?("homebrew/")
+ Tap.fetch("homebrew", tap.strip_prefix("homebrew/"))
+ elsif tap
+ odie "Tap option did not start with \"homebrew/\": #{tap}"
+ else
+ CoreTap.instance
+ end
_, testing_job = *testing_match
- url = "https://github.com/Homebrew/homebrew-core/compare/master...BrewTestBot:testing-#{testing_job}"
- tap = CoreTap.instance
+ url = "https://github.com/Homebrew/homebrew-#{tap.repo}/compare/master...BrewTestBot:testing-#{testing_job}"
odie "Testing URLs require `--bottle`!" unless ARGV.include?("--bottle")
elsif (api_match = arg.match HOMEBREW_PULL_API_REGEX)
_, user, repo, issue = *api_match