From 3aaf09a4370904c98ebdb2e7fde9c08e16b08761 Mon Sep 17 00:00:00 2001 From: "Mr.k" Date: Thu, 4 Apr 2024 01:39:38 +0300 Subject: [PATCH] Update Github Actions Auto Close Issues --- .github/workflows/close-old-issues.yaml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/workflows/close-old-issues.yaml b/.github/workflows/close-old-issues.yaml index 1b129a0abc..83badf4310 100644 --- a/.github/workflows/close-old-issues.yaml +++ b/.github/workflows/close-old-issues.yaml @@ -36,6 +36,12 @@ jobs: // Close issues inactive for more than the inactivity period for (const issue of issues) { + const labels = await octokit.rest.issues.listLabelsOnIssue({ + owner, + repo, + issue.number, + }); + console.log(`For Issue #${issue.number} there's labels: ${labels}`); const lastCommentDate = issue.updated_at; if (new Date(lastCommentDate) < inactivityPeriod) { try {