Overview of Stale Issue Closing behavior
mainThe stale issue closing system automates the cleanup of inactive issues based on the following logic:
- Schedule: Runs daily at midnight UTC.
- Targeting: Finds issues with the
pending-responselabel. - Inactivity Check: Monitors comments and label changes. If no activity is detected for 7 days, the issue is considered stale.
- Action: Closes the issue and posts a comment explaining why it was closed.
- Reset Logic: Any new user activity (like a comment) resets the inactivity timer.
- Error Handling: Handles errors gracefully and logs all actions for transparency.