File tree Expand file tree Collapse file tree 4 files changed +5
-5
lines changed Expand file tree Collapse file tree 4 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -56,7 +56,7 @@ def sha
56
56
end
57
57
58
58
def url
59
- @pr [ 'url ' ]
59
+ @pr [ 'html_url ' ]
60
60
end
61
61
62
62
private
Original file line number Diff line number Diff line change @@ -28,9 +28,9 @@ def ref
28
28
system ( 'git submodule update --init --recursive 1>&2' )
29
29
system ( "git fetch -q origin pull/#{ id } /head:pr-#{ id } 1>&2" )
30
30
system ( "git checkout pr-#{ id } 1>&2" )
31
- system ( "git config --add pullrequest.url #{ pr [ 'url ' ] } 1>&2" )
31
+ system ( "git config --add pullrequest.url #{ pr [ 'html_url ' ] } 1>&2" )
32
32
system ( "git config --add pullrequest.id #{ pr [ 'number' ] } 1>&2" )
33
33
end
34
34
35
35
puts JSON . generate ( version : { ref : ref , pr : id . to_s } ,
36
- metadata : [ { name : 'url' , value : pr [ 'url ' ] } ] )
36
+ metadata : [ { name : 'url' , value : pr [ 'html_url ' ] } ] )
Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ def commit(msg)
23
23
24
24
before do
25
25
proxy . stub ( 'https://api.github.com:443/repos/jtarchie/test/pulls/1' )
26
- . and_return ( json : { url : 'http://example.com' , number : 1 } )
26
+ . and_return ( json : { html_url : 'http://example.com' , number : 1 } )
27
27
28
28
git ( 'init -q' )
29
29
@ref = commit ( 'init' )
Original file line number Diff line number Diff line change @@ -53,7 +53,7 @@ def request_body(method, url)
53
53
git ( 'config --add pullrequest.id 1' )
54
54
proxy . stub ( 'https://api.github.com:443/repos/jtarchie/test/pulls/1' )
55
55
. and_return ( json : {
56
- url : 'http://example.com' ,
56
+ html_url : 'http://example.com' ,
57
57
number : 1 ,
58
58
head : { sha : 'abcdef' }
59
59
} )
You can’t perform that action at this time.
0 commit comments