pull: allow pulling all testing jobs.

This commit is contained in:
Mike McQuaid 2015-09-11 14:33:39 +01:00
parent 55616a4d01
commit cfc6f737f3

View File

@ -63,7 +63,7 @@ module Homebrew
if arg.to_i > 0
url = "https://github.com/Homebrew/homebrew/pull/#{arg}"
issue = arg
elsif (testing_match = arg.match %r{brew.sh/job/Homebrew%20Testing/(\d+)/})
elsif (testing_match = arg.match %r{brew.sh/job/Homebrew.*Testing/(\d+)/})
_, testing_job = *testing_match
url = "https://github.com/Homebrew/homebrew/compare/master...BrewTestBot:testing-#{testing_job}"
odie "Testing URLs require `--bottle`!" unless ARGV.include?("--bottle")