Skip to content

Commit

Permalink
Try a different way of adding the label
Browse files Browse the repository at this point in the history
  • Loading branch information
Elizabeth Rapp committed Mar 10, 2022
1 parent 5c9a594 commit bd3c0d6
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
});
}

Expand Down

0 comments on commit bd3c0d6

Please # to comment.