From c390fc9ce7ad8204c8dc262e289814f9b9d774ba Mon Sep 17 00:00:00 2001 From: Sebastian Kippe Date: Sun, 28 Apr 2019 13:01:09 +0100 Subject: [PATCH 1/2] Fix Gitea issue ID/URL being wrong Internal issue IDs are different from the public ones in Gitea. The one used in URLs etc. is called "number" instead of "id" in hook payloads. fixes #33 --- integrations/gitea.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/integrations/gitea.js b/integrations/gitea.js index 19d3163..969745d 100644 --- a/integrations/gitea.js +++ b/integrations/gitea.js @@ -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) : []; From 840fcf9d25a7a1dcd0b1fa331115b2fa3fb6dcfe Mon Sep 17 00:00:00 2001 From: Sebastian Kippe Date: Sun, 28 Apr 2019 13:01:33 +0100 Subject: [PATCH 2/2] Add commented setting for custom local DAO address --- index.js | 1 + 1 file changed, 1 insertion(+) diff --git a/index.js b/index.js index d3ea757..cf410c4 100644 --- a/index.js +++ b/index.js @@ -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) {