From e9a6203dee21cda91a8f5a113ea4171f3b221571 Mon Sep 17 00:00:00 2001 From: Yineng Zhang Date: Sun, 1 Dec 2024 19:18:57 +0800 Subject: [PATCH] feat: skip good first issue (#2298) --- .github/workflows/close-inactive-issues.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/workflows/close-inactive-issues.yml b/.github/workflows/close-inactive-issues.yml index 1455da480..048e6c443 100644 --- a/.github/workflows/close-inactive-issues.yml +++ b/.github/workflows/close-inactive-issues.yml @@ -54,6 +54,11 @@ jobs: } for (const issue of issues.data) { + // Skip if the issue has 'good first issue' label + if (issue.labels.some(label => label.name === 'good first issue')) { + console.log(`Skipping issue #${issue.number} as it's marked as 'good first issue'`); + continue; + } if (new Date(issue.updated_at) < sixtyDaysAgo) { try { await github.rest.issues.update({