fix: correctly determine project for issue

This commit is contained in:
Karl-Philipp Wulfert
2019-01-23 08:20:03 +01:00
parent 0e87e4f60d
commit 8f06fc3534

View File

@@ -108,7 +108,7 @@ function issueToString(issue: any,
issue: issue,
// take the first URL from the merge request urls array (usually if there are URLs, then there is that only one)
mergeRequestUrl: getMergeRequestUrls(projectMergeRequests, issue.project_id, issue.iid)[0],
project: Api.getProjectPath(issue),
project: issue.web_url.replace('https://gitlab.com/', '').split('/issues/')[0],
weeksOpen: moment().diff(moment(issue.created_at), 'weeks'),
});
/* tslint:enable */