Skip to content
Snippets Groups Projects
Commit 51eedb41 authored by jurgenhaas's avatar jurgenhaas
Browse files

#7 Correct the link to the pull request

parent 8eeb8fc7
No related branches found
No related tags found
No related merge requests found
......@@ -72,6 +72,11 @@ GitHubTrackerSource.prototype.renderItem = function(item, linkCB, imageCB) {
url = url + '/issues/' + issue_id + '#issuecomment-' + comment_id;
type = 'Issue';
break;
case 'PullRequest':
var issue_id = item.subject.url.split('/').pop();
url = url + '/pull/' + issue_id;
type = 'PR';
break;
default:
url = item.subject.url.replace('//api.', '//').replace('/repos/', '/');
type = 'Unknown';
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment