From bd3c0d6bc334919812a38a4da0a676bf92066be0 Mon Sep 17 00:00:00 2001 From: Elizabeth Rapp Date: Thu, 10 Mar 2022 15:58:44 -0600 Subject: [PATCH] Try a different way of adding the label --- index.js | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/index.js b/index.js index 5bc375a..b1fdcd7 100644 --- a/index.js +++ b/index.js @@ -58,17 +58,14 @@ async function process(dataMap, payload) { } async function addLabelToIssue(org, repo, issueNumber, label) { - console.log( - `Label debug info:\nOrg: ${org}\nRepo: ${repo}\nIssue Number: ${issueNumber}\nLabel: ${label}` - ); let labels = []; labels.push(label); return await octokit.rest.issues.addLabels({ org, repo, - issueNumber, - labels, + issue_number: issueNumber, + labels: labels, }); }