diff options
author | Jongwook Choi <wookayin@gmail.com> | 2024-01-15 21:45:41 -0500 |
---|---|---|
committer | dundargoc <33953936+dundargoc@users.noreply.github.com> | 2024-01-16 08:59:43 +0100 |
commit | 6a4c4fa198f7fdb256c8d1013bae55da4f443993 (patch) | |
tree | d28e0a531e62f27c22e7bd73fddde4849c15aa8a | |
parent | 70d47a177697baba997ad022b5788cab58cdd300 (diff) | |
download | rneovim-6a4c4fa198f7fdb256c8d1013bae55da4f443993.tar.gz rneovim-6a4c4fa198f7fdb256c8d1013bae55da4f443993.tar.bz2 rneovim-6a4c4fa198f7fdb256c8d1013bae55da4f443993.zip |
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
-rw-r--r-- | .github/scripts/close_unresponsive.js | 1 |
1 files changed, 1 insertions, 0 deletions
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", }); |