File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -90,6 +90,7 @@ function queryGithub (msg, done) {
9090 params . state = 'open'
9191
9292 github . pullRequests . getAll ( params , ( err , prs ) => {
93+ if ( err ) return done ( err )
9394 var data = {
9495 name : msg . repo || '' ,
9596 user : msg . user || '' ,
@@ -98,15 +99,16 @@ function queryGithub (msg, done) {
9899 watches : repo . subscribers_count || '' ,
99100 forks : repo . forks_count || '' ,
100101 last : repo . pushed_at || '' ,
101- urlRepo : msg . url || '' ,
102- urlClone : repo . clone_url || '' ,
102+ urlRepo : 'https://github.com/' + msg . user + '/' + msg . repo ,
103+ urlClone : 'git+https://github.com/' + msg . user + '/' + msg . repo + '.git' ,
104+ urlSSH : 'git@github.com:' + msg . user + '/' + msg . repo + '.git' ,
103105 pullRequests : prs && prs . length || 0 ,
104106 cached : Date . now ( )
105107 }
106108
107109 function complete ( err ) {
108- if ( err ) return done ( err )
109- else done ( null , data )
110+ if ( err ) return done ( err )
111+ else done ( null , data )
110112 }
111113
112114 cache . load$ ( msg . name , ( err , cached ) => {
You can’t perform that action at this time.
0 commit comments