Typo in repo urls

This commit is contained in:
Kristian Polso 2018-05-12 21:20:34 +03:00
parent 4d8e6b735e
commit 20b2ad2f73

View file

@ -98,10 +98,10 @@ export default {
return event.payload.comment.html_url; return event.payload.comment.html_url;
break; break;
case 'repo': case 'repo':
return 'https://github.com' + event.repo.name; return 'https://github.com/' + event.repo.name;
break; break;
case 'forkee': case 'forkee':
return 'https://github.com' + event.payload.forkee.full_name; return 'https://github.com/' + event.payload.forkee.full_name;
break; break;
case 'issue': case 'issue':
return event.payload.issue.html_url; return event.payload.issue.html_url;
@ -118,17 +118,6 @@ export default {
} }
},
rewriteGithubApiUrl (url) {
url = url.replace('api.github.com', 'github.com');
var urlParts = url.split('/');
urlParts.push(urlParts.splice(4).join('/'));
return urlParts[0] + '/' + urlParts[1] + '/' + urlParts[2] + '/' + urlParts[4];
} }
} }
}; };