Skip to content

ci: add stale-issue/PR workflow [skip changelog] - #947

Merged
avifenesh merged 1 commit into
mainfrom
ci/stale-workflow
May 19, 2026
Merged

ci: add stale-issue/PR workflow [skip changelog]#947
avifenesh merged 1 commit into
mainfrom
ci/stale-workflow

Conversation

@avifenesh

Copy link
Copy Markdown
Collaborator

Summary

  • Adds actions/stale@v10.2.0 (SHA-pinned) on a daily cron + manual dispatch.
  • Issues: 60 days idle then stale, 14 more then close. PRs: 30 / 10.
  • Exempt issue labels: pinned, blocker, blocked, priority:p0, priority:p1, spec-drift, tool-release. The bare tool-release label is applied to every per-tool tool-release:<id> issue (see scripts/check-tool-releases.sh), so per-tool issues stay exempt too.
  • Exempt PR labels: pinned, blocker, priority:p0, priority:p1, dependencies - so dependabot PRs are not staled.
  • remove-stale-when-updated: true clears the stale label automatically when activity resumes.

Test plan

  • Trigger via workflow_dispatch once after merge to dry-run against the current backlog (the action posts comments and labels, so review the first run before letting cron run unattended).
  • Confirm an exempt-label issue (e.g. one labeled priority:p1) is not touched.
  • Confirm a dependabot PR is not touched.

Adds actions/stale@v10.2.0 (SHA-pinned) on a daily cron plus
manual workflow_dispatch trigger.

- Issues: 60 days inactive then stale, 14 more then close.
- PRs: 30 days inactive then stale, 10 more then close.
- Exempt issues: pinned, blocker, blocked, priority:p0/p1,
  spec-drift, tool-release (the bare tool-release label is
  also applied to per-tool tool-release:<id> issues, so it
  covers those too).
- Exempt PRs: pinned, blocker, priority:p0/p1, dependencies
  (keeps dependabot PRs out of the staling loop).
- remove-stale-when-updated keeps the stale label honest if
  activity resumes.
Copilot AI review requested due to automatic review settings May 19, 2026 13:52
@gemini-code-assist

Copy link
Copy Markdown
Contributor

Note

Gemini is unable to generate a review for this pull request due to the file types involved not being currently supported.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds a new scheduled/manual GitHub Actions workflow to automatically mark inactive issues and pull requests as stale and close them after configured grace periods.

Changes:

  • Adds daily actions/stale workflow with minimal write permissions for issues/PRs.
  • Configures separate stale/close thresholds for issues and PRs.
  • Exempts priority, pinned/blocking, release/tool-tracking, and dependency-labeled items.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@avifenesh
avifenesh merged commit 5869ff9 into main May 19, 2026
10 checks passed
@avifenesh
avifenesh deleted the ci/stale-workflow branch May 19, 2026 14:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants