Fix wrong Gitea issue IDs/URLs #35

Merged
raucao merged 2 commits from bugfix/33-gitea_issue_id into master 2019-04-30 08:26:22 +00:00
Showing only changes of commit c390fc9ce7 - Show all commits

View File

@@ -85,7 +85,7 @@ module.exports = async function(robot, kredits) {
async function handleGiteaIssueClosed(data) {
const issue = data.issue;
const repoName = data.repository.full_name;
const web_url = `${data.repository.html_url}/issues/${issue.id}`;
const web_url = `${data.repository.html_url}/issues/${issue.number}`;
const description = `${repoName}: ${issue.title}`;
const amount = amountFromLabels(issue.labels);
const assignees = issue.assignees ? issue.assignees.map(a => a.login) : [];