From 8d4a7437b9e2a1bf000b10818c5c4846bc370fd2 Mon Sep 17 00:00:00 2001 From: Coco Sheng Date: Tue, 14 Apr 2026 10:41:38 -0400 Subject: [PATCH] feat: improve inactive issue closing comment --- .github/workflows/core-ui-triage.yml | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/.github/workflows/core-ui-triage.yml b/.github/workflows/core-ui-triage.yml index 40f66b58ef..b13ae746b2 100644 --- a/.github/workflows/core-ui-triage.yml +++ b/.github/workflows/core-ui-triage.yml @@ -118,9 +118,19 @@ jobs: // 2. Inactive over 60 days? if (updatedAt < days60) { console.log(`Issue #${issue.number} inactive over 60 days. Closing as Not Planned.`); + + let commentBody = "This issue has been inactive for over 60 days and is being closed as not planned. "; + if (labels.includes('type/bug')) { + commentBody += "If this was a bug, please try reproducing it with the latest build. If it still occurs, feel free to reopen the issue."; + } else if (labels.includes('type/enhancement') || labels.includes('type/feature-request')) { + commentBody += "If this was a feature request, please re-evaluate if it is still needed. If so, feel free to reopen the issue with updated context."; + } else { + commentBody += "Please reopen if this is still relevant."; + } + await github.rest.issues.createComment({ owner, repo, issue_number: issue.number, - body: "This issue has been inactive for over 60 days. Closing as not planned. Please reopen if this is still relevant." + body: commentBody }); await github.rest.issues.update({ owner, repo, issue_number: issue.number,