Merge pull request #35 from 67P/bugfix/33-gitea_issue_id

Fix wrong Gitea issue IDs/URLs
This commit is contained in:
Greg Karékinian 2019-04-30 10:26:21 +02:00 committed by GitHub
commit f1bb5b391d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 1 deletions

View File

@ -53,6 +53,7 @@ module.exports = async function(robot) {
kredits = await new Kredits(signer.provider, signer, {
// TODO support local devchain custom address
apm: 'open.aragonpm.eth',
// addresses: { Kernel: '0x93aa4531329e4bf3efcd1ec0b74adb6f66d9d10e' }
ipfsConfig
}).init();
} catch(error) {

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) : [];