Skip to content

CI/CD: Add a dedicated GitHub Action to label and manage stale issues #1123

@rohan-pandeyy

Description

@rohan-pandeyy

Description

While reviewing the current workflows under .github/workflows, I noticed that we don’t have any automation in place to handle inactive or long-running issues.

Current state

  • There is no workflow that labels or closes stale issues.
  • All existing workflows (for example, auto-issue-comment.yml, linked-issue.yml) are event-driven and run only when an issue or PR is updated.
  • None of the workflows run on a scheduled basis, which is required to periodically scan for inactivity.

Because stale issue handling requires a time-based scan (for example, checking for issues inactive for 60+ days), extending an existing event-triggered workflow would make it harder to reason about and maintain.


Proposal

Introduce a dedicated stale.yml workflow using a standard stale-bot approach.
This workflow would:

  1. Run on a daily schedule (cron-based).
  2. Label issues as stale after a configurable period of inactivity (I say 20 days).
  3. Optionally post a comment notifying the user that the issue needs attention.
  4. Automatically close the issue after a follow-up period (e.g., 7 days) if there is still no activity.
  5. Exempt important labels (e.g., gsoc, proposal, bug, high-priority) if needed.

Many major OS organizations already make use of this action and PictoPy could profit from such an automated workflow.
Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions