Skip to content

Commit a4a98d6

Browse files
authored
Add stale bot workflow (#182)
1 parent 03fd63a commit a4a98d6

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

.github/workflows/stale.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: Close inactive issues and PRs
2+
on:
3+
schedule:
4+
- cron: "30 1 * * *"
5+
6+
jobs:
7+
close-issues:
8+
runs-on: ubuntu-latest
9+
permissions:
10+
issues: write
11+
pull-requests: write
12+
steps:
13+
- uses: actions/[email protected]
14+
with:
15+
days-before-stale: 30
16+
days-before-close: 5
17+
days-before-pr-close: -1
18+
stale-issue-label: "stale"
19+
exempt-issue-labels: "awaiting-approval,work-in-progress,dependencies"
20+
exempt-pr-labels: "awaiting-approval,work-in-progress,dependencies"
21+
stale-issue-message: "This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days."
22+
close-issue-message: "This issue was closed because it has been stalled for 5 days with no activity."
23+
stale-pr-message: "This PR is stale because it has been open 30 days with no activity."
24+
repo-token: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)