danger 5.6.2 → 5.6.3
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3008daee867afc587ebc2d20fc53ec3142c0cf70
|
4
|
+
data.tar.gz: e87af55a0ad856a1879147de8509ac3f0b979686
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 21bbc591a92443cfc5f1819ada02985e291878bdf33fd34d3532fb860301a4a9a538a0f2afac3a51bf6d08a823bf293f9c8c9acc28559dbb54325bf7b2d2d34a
|
7
|
+
data.tar.gz: 5fc46f0a928bfcf83a0bc069a05eff38d22b14c5e3a3a526e47d9d88968b33be9922faee91bcfd4e1cafb47286982492765b373e3e469c81ce199ca0ba2cce47
|
@@ -16,8 +16,13 @@ module Danger
|
|
16
16
|
|
17
17
|
if url.nil? && !env["CIRCLE_PROJECT_USERNAME"].nil? && !env["CIRCLE_PROJECT_REPONAME"].nil?
|
18
18
|
repo_slug = env["CIRCLE_PROJECT_USERNAME"] + "/" + env["CIRCLE_PROJECT_REPONAME"]
|
19
|
-
|
20
|
-
|
19
|
+
if !env["CIRCLE_PR_NUMBER"].nil?
|
20
|
+
host = env["DANGER_GITHUB_HOST"] || "github.com"
|
21
|
+
url = "https://" + host + "/" + repo_slug + "/pull/" + env["CIRCLE_PR_NUMBER"]
|
22
|
+
else
|
23
|
+
token = env["DANGER_CIRCLE_CI_API_TOKEN"]
|
24
|
+
url = fetch_pull_request_url(repo_slug, env["CIRCLE_BUILD_NUM"], token)
|
25
|
+
end
|
21
26
|
end
|
22
27
|
url
|
23
28
|
end
|
data/lib/danger/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: danger
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 5.6.
|
4
|
+
version: 5.6.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Orta Therox
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2018-
|
12
|
+
date: 2018-07-23 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: claide
|