From c90a089d506d80a5f46af88a4f65402741c5e075 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..b51f35811e 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:\n${labels}`) const lastCommentDate = issue.updated_at; if (new Date(lastCommentDate) < inactivityPeriod) { try {