Skip to content

Commit

Permalink
Update Github Actions Auto Close Issues
Browse files Browse the repository at this point in the history
  • Loading branch information
og-mrk committed Apr 3, 2024
1 parent 2ee10b5 commit c90a089
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/close-old-issues.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit c90a089

Please sign in to comment.