Skip to content

Commit 1df96d2

Browse files
authored
Add workflow for managing stale issues & PRs (#1055)
Adds a GitHub workflow for managing stale & rotten issues and PRs. Issues & PRs are marked stale after 90 days of inactivity. After 60 further days, they are marked as rotten and closed.
1 parent 9057a5d commit 1df96d2

File tree

1 file changed

+35
-0
lines changed

1 file changed

+35
-0
lines changed

Diff for: .github/workflows/stale.yaml

+35
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: Mark stale issues and pull requests
2+
3+
on:
4+
schedule:
5+
- cron: "0 0 * * *"
6+
7+
permissions:
8+
contents: read
9+
10+
jobs:
11+
stale:
12+
13+
permissions:
14+
issues: write # for actions/stale to close stale issues
15+
pull-requests: write # for actions/stale to close stale PRs
16+
runs-on: ubuntu-latest
17+
18+
steps:
19+
- uses: actions/stale@v7
20+
with:
21+
repo-token: ${{ secrets.GITHUB_TOKEN }}
22+
stale-issue-message: "This issue is stale because it has been open for 90 days with no activity. Remove stale label or comment or this will be closed in 60 days."
23+
stale-pr-message: "This PR is stale because it has been open for 90 days with no activity. Remove stale label or comment or this will be closed in 60 days."
24+
25+
days-before-stale: 90
26+
days-before-close: 60
27+
stale-issue-label: 'lifecycle/stale'
28+
stale-pr-label: 'lifecycle/stale'
29+
exempt-issue-labels: 'lifecycle/frozen'
30+
exempt-pr-labels: 'lifecycle/frozen'
31+
close-issue-label: 'lifecycle/rotten'
32+
close-pr-label: 'lifecycle/rotten'
33+
34+
start-date: '2023-03-16T00:00:00Z'
35+

0 commit comments

Comments
 (0)