Typo in repo urls
This commit is contained in:
parent
4d8e6b735e
commit
20b2ad2f73
1 changed files with 2 additions and 13 deletions
|
@ -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];
|
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue