Skip to content

Add stale PR workflow using actions/stale#593

Draft
Copilot wants to merge 2 commits intomainfrom
copilot/install-stale-action
Draft

Add stale PR workflow using actions/stale#593
Copilot wants to merge 2 commits intomainfrom
copilot/install-stale-action

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Mar 10, 2026

PRs with no activity were accumulating without automatic cleanup. Adds a scheduled workflow to mark and close inactive pull requests.

Changes

  • .github/workflows/stale.yml — new workflow using actions/stale@v9:
    • Runs daily at midnight UTC; also supports workflow_dispatch
    • PRs inactive for 15 days → labeled Inactive
    • Closed after 3 more days without activity
    • Draft PRs are exempt
    • Issues are excluded (days-before-issue-stale: -1)
    • Inactive label removed automatically when a stale PR receives new activity
    • Permissions scoped to pull-requests: write only

🔒 GitHub Advanced Security automatically protects Copilot coding agent pull requests. You can protect all pull requests by enabling Advanced Security for your repositories. Learn more about Advanced Security.

Co-authored-by: netchampfaris <9355208+netchampfaris@users.noreply.github.com>
Copilot AI changed the title [WIP] Install stale action to manage stale pull requests Add stale PR workflow using actions/stale Mar 10, 2026
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