aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/dev-cmd
diff options
context:
space:
mode:
authorMike McQuaid2016-07-14 10:10:34 +0100
committerMike McQuaid2016-07-14 10:10:34 +0100
commitb3ed00b791b5e95519b3a59a578a09dd084c44ab (patch)
tree1bf540de8c02370484a4207e9ac30cfc9d032981 /Library/Homebrew/dev-cmd
parentc2ece46e1b9d509c395b903ad0e472024832941f (diff)
downloadbrew-b3ed00b791b5e95519b3a59a578a09dd084c44ab.tar.bz2
test-bot: use another method to find Jenkins PR.
Diffstat (limited to 'Library/Homebrew/dev-cmd')
-rw-r--r--Library/Homebrew/dev-cmd/test-bot.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/Library/Homebrew/dev-cmd/test-bot.rb b/Library/Homebrew/dev-cmd/test-bot.rb
index 40e99f7b6..9b9b65614 100644
--- a/Library/Homebrew/dev-cmd/test-bot.rb
+++ b/Library/Homebrew/dev-cmd/test-bot.rb
@@ -304,6 +304,11 @@ module Homebrew
@url = ENV["ghprbPullLink"]
@hash = nil
test "git", "checkout", "origin/master"
+ elsif ENV["GIT_BRANCH"] && ENV["GIT_URL"]
+ %r{origin/pr/(\d+)/(merge|head)} =~ ENV["GIT_BRANCH"]
+ pr = $1
+ @url = "#{ENV["GIT_URL"]}/pull/#{pr}"
+ @hash = nil
# Use Travis CI pull-request variables for pull request jobs.
elsif travis_pr
@url = "https://github.com/#{ENV["TRAVIS_REPO_SLUG"]}/pull/#{ENV["TRAVIS_PULL_REQUEST"]}"