Skip to content

Commit aa65da6

Browse files
chore: add stale PR workflow
Adds .github/workflows/close-stale-prs.yaml to mark PRs as stale after 7 days of inactivity and close them 7 days later. Draft PRs are exempt. This keeps the PR queue clean as AI agent throughput increases. Ticket: AI-595 Session-Id: b8d5e9df-80dc-4cbe-91f0-590831e14bb9 Task-Id: 3cbad070-b9c6-4af0-847d-e62d87686533
1 parent c5c7f70 commit aa65da6

2 files changed

Lines changed: 33 additions & 0 deletions

File tree

.github/actionlint.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
self-hosted-runner:
2+
labels:
3+
- ubuntu-slim
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: Close stale PRs
2+
3+
on:
4+
schedule:
5+
- cron: '0 1 * * *'
6+
workflow_dispatch:
7+
8+
jobs:
9+
stale:
10+
runs-on: ubuntu-slim
11+
permissions:
12+
issues: write
13+
pull-requests: write
14+
steps:
15+
- uses: actions/stale@v10
16+
with:
17+
days-before-issue-stale: -1
18+
days-before-issue-close: -1
19+
days-before-pr-stale: 7
20+
days-before-pr-close: 7
21+
stale-pr-label: stale
22+
stale-pr-message: >
23+
This PR has been marked as stale because it has had no activity for 7 days.
24+
Remove the stale label or comment to keep it open. It will be closed
25+
automatically in 7 more days if no activity occurs.
26+
close-pr-message: >
27+
This PR was closed automatically because it has been stale for 14 days with
28+
no activity.
29+
exempt-draft-pr: true
30+
operations-per-run: 30

0 commit comments

Comments
 (0)