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 {