Skip to content

Commit 7403188

Browse files
authored
Add workflow to mark stale issues and PRs (#1443)
1 parent c374c39 commit 7403188

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

.github/workflows/stale.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: Mark stale issues and pull requests
2+
on:
3+
schedule:
4+
- cron: '0 0 * * 0' # Run every day at midnight UTC on Sunday
5+
jobs:
6+
stale:
7+
runs-on: ubuntu-latest
8+
steps:
9+
- uses: actions/stale@v8
10+
with:
11+
# Overall configuration
12+
operations-per-run: 100
13+
14+
# PR configuration
15+
days-before-pr-stale: 30
16+
stale-pr-message: 'This PR has become stale because it has been open for 30 days with no activity. Adding the `lifecycle/frozen` label will cause this PR to ignore lifecycle events.'
17+
days-before-pr-close: -1
18+
stale-pr-label: lifecycle/stale
19+
exempt-pr-labels: lifecycle/frozen
20+
close-pr-label: lifecycle/rotten
21+
22+
# Issue configuration
23+
days-before-issue-stale: 60
24+
stale-issue-message: 'This issue has become stale because it has been open 60 days with no activity. Adding the `lifecycle/frozen` label will cause this issue to ignore lifecycle events.'
25+
days-before-issue-close: -1
26+
stale-issue-label: lifecycle/stale
27+
exempt-issue-labels: lifecycle/frozen
28+
close-issue-label: lifecycle/rotten

0 commit comments

Comments
 (0)