From 6a4c4fa198f7fdb256c8d1013bae55da4f443993 Mon Sep 17 00:00:00 2001 From: Jongwook Choi Date: Mon, 15 Jan 2024 21:45:41 -0500 Subject: ci: stale bot should close the issue with "not planned" Problem: When the stable bot automatically closes an issue, the issue will be marked as "closed as completed". It'd be better to mark the as "closed as not planned". Solution: Use `state_reason: "not_planned"` from the issues REST API. References (REST API): https://docs.github.com/en/rest/issues/issues?apiVersion=2022-11-28#update-an-issue --- .github/scripts/close_unresponsive.js | 1 + 1 file changed, 1 insertion(+) (limited to '.github/scripts') diff --git a/.github/scripts/close_unresponsive.js b/.github/scripts/close_unresponsive.js index f0e8bbe93e..b16c19b653 100644 --- a/.github/scripts/close_unresponsive.js +++ b/.github/scripts/close_unresponsive.js @@ -41,6 +41,7 @@ module.exports = async ({ github, context }) => { owner: owner, repo: repo, issue_number: number, + state_reason: "not_planned", state: "closed", }); -- cgit