[AUTOMATION] Auto-close stale issues after 30 days of inactivity #24
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
Build an automation script that identifies issues with no activity for 30+ days, adds a warning comment, and closes them after a grace period. Keeps the issue tracker clean and focused.
Motivation
Stale issues accumulate and create noise. They make it harder to see what's actually in progress. An artisan keeps his workshop clean - the issue tracker is no different.
Acceptance Criteria
scripts/stale_issue_closer.pythat:pinnedorkeep-openlabel that prevents auto-closingentries/automation/stale-issues-log.md--dry-run) that reports what WOULD be closed without taking actionImplementation Notes
GET /repos/{owner}/{repo}/issues?state=open&sort=updated&direction=ascupdated_atfield for stalenessDefinition of Done
Weekly cron job keeps the issue tracker clean. Stale issues get a warning, then auto-close. Active issues are never touched.