danger-yajp 0.1.0 → 0.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/yajp/gem_version.rb +1 -1
- data/lib/yajp/plugin.rb +2 -4
- data/spec/yajp_spec.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 28f5c1b87c4924673bd6bfe7d00ec01bf94b4ea9520b43fd3002eb5944141e7c
|
4
|
+
data.tar.gz: a13caf1147682bdd71e048c848be6cb53cc7a5f5cd489310883d0ab797d76913
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2007d092a1f920d1ca505de0695b26680629dbc082314e9ba9531894df830822383a372d3bd3b606917242ff30f161bb7d83164feaef43f6d01784908738eaf6
|
7
|
+
data.tar.gz: 4b37f4e6098bb8bb594da8bcf3f433500cf53107fc510169ec75760b7fb0c3137e0150fb8f64f2f53880cf0db55c618602db2e038edd22fa1c2292c0bae12452
|
data/Gemfile.lock
CHANGED
data/lib/yajp/gem_version.rb
CHANGED
data/lib/yajp/plugin.rb
CHANGED
@@ -230,12 +230,10 @@ module Danger
|
|
230
230
|
def pr_link
|
231
231
|
return @pr_link unless @pr_link.nil?
|
232
232
|
|
233
|
-
pr_hash = JSON.parse(vcs_host.pr_json, symbolize_names: true)
|
234
|
-
|
235
233
|
if defined? @dangerfile.gitlab
|
236
|
-
@pr_link =
|
234
|
+
@pr_link = vcs_host.pr_json['web_url']
|
237
235
|
else
|
238
|
-
@pr_link =
|
236
|
+
@pr_link = vcs_host.pr_json['html_url']
|
239
237
|
end
|
240
238
|
|
241
239
|
return @pr_link
|
data/spec/yajp_spec.rb
CHANGED
@@ -122,7 +122,7 @@ module Danger
|
|
122
122
|
|
123
123
|
it 'can add remote link' do
|
124
124
|
pr_title = 'PR Title'
|
125
|
-
pr_json = '
|
125
|
+
pr_json = { 'html_url' => 'https://github.com/test/pull/1234' }
|
126
126
|
url = "#{ENV['DANGER_JIRA_URL']}/rest/api/2/issue/WEB-134/remotelink"
|
127
127
|
json = File.read("#{File.dirname(__FILE__)}/support/remotelink.json")
|
128
128
|
issue = plugin.api.Issue.build
|