lib/danger/ci_source/jenkins.rb in danger-3.0.2 vs lib/danger/ci_source/jenkins.rb in danger-3.0.3
- old
+ new
@@ -48,11 +48,11 @@
repo_matches = self.repo_url.match(%r{([\/:])([^\/]+\/[^\/.]+)(?:.git)?$})
self.repo_slug = repo_matches[2] unless repo_matches.nil?
end
def self.pull_request_id(env)
- if env["ghprPullId"]
- env["ghprPullId"]
+ if env["ghprbPullId"]
+ env["ghprbPullId"]
else
env["gitlabMergeRequestId"]
end
end
end