From 8f06fc35347f06e8409e4190079323af91fc0a37 Mon Sep 17 00:00:00 2001 From: Karl-Philipp Wulfert Date: Wed, 23 Jan 2019 08:20:03 +0100 Subject: [PATCH] fix: correctly determine project for issue --- src/tasks/report.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tasks/report.ts b/src/tasks/report.ts index ad21d12f..8493ca87 100644 --- a/src/tasks/report.ts +++ b/src/tasks/report.ts @@ -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 */