From cc19ec125a1b9bd26f9be2b901172d28ca2339c0 Mon Sep 17 00:00:00 2001 From: dijunkun Date: Mon, 27 Oct 2025 11:04:36 +0800 Subject: [PATCH] [ci] update close-issue.yml --- .github/workflows/close-issue.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.github/workflows/close-issue.yml b/.github/workflows/close-issue.yml index 737b371..dbaa250 100644 --- a/.github/workflows/close-issue.yml +++ b/.github/workflows/close-issue.yml @@ -58,6 +58,14 @@ jobs: // check inactivity if (now - lastActivityTime > inactivePeriod) { console.log(`Closing inactive issue: #${issue.number} (No recent replies for 7 days)`); + + await github.rest.issues.createComment({ + owner: context.repo.owner, + repo: context.repo.repo, + issue_number: issue.number, + body: "This issue has been automatically closed due to inactivity for 7 days." + }); + await github.rest.issues.update({ owner: context.repo.owner, repo: context.repo.repo,