From 559d558fb5a158a188f2eab23b5edf3b50aa3990 Mon Sep 17 00:00:00 2001 From: Melissa Xie Date: Sat, 25 Apr 2020 15:50:48 -0400 Subject: [PATCH] "state", not "status" And log which ones have been closed. Mostly for debugging purposes but still useful! --- index.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/index.js b/index.js index f0683c8..0704e9d 100644 --- a/index.js +++ b/index.js @@ -33,8 +33,10 @@ async function run() { octokit.issues.update({ ...ghContext.repo, issue_number: issueNumber, - status: "closed", + state: "closed", }); + + console.log(`Closed #${issue.number}.`); issuesClosed++; }