Skip to content

Commit 670466d

Browse files
committed
Add stale workflow
1 parent f2873ca commit 670466d

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

.github/workflows/stale.yaml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: "Close stale issues and PRs"
2+
on:
3+
schedule:
4+
- cron: "30 1 * * *"
5+
6+
jobs:
7+
stale:
8+
runs-on: ubuntu-latest
9+
steps:
10+
- uses: actions/stale@v9
11+
with:
12+
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 7 days."
13+
stale-pr-message: "This PR is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 7 days."
14+
close-issue-message: "This issue was closed because it has been stalled for 7 days with no activity."
15+
close-pr-message: "This PR was closed because it has been stalled for 7 days with no activity."
16+
days-before-issue-stale: 30
17+
days-before-pr-stale: 30
18+
days-before-issue-close: 7
19+
days-before-pr-close: 7
20+
21+
permissions:
22+
# contents: write # only for delete-branch option
23+
issues: write
24+
pull-requests: write

0 commit comments

Comments
 (0)