Skip to content

Commit c831932

Browse files
State bot
1 parent cfe795c commit c831932

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed

.github/workflows/stalte-bot.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: "Close stale issues and PRs"
2+
on:
3+
schedule:
4+
# Run the stalebot every day at 3pm UTC
5+
- cron: "00 15 * * *"
6+
workflow_dispatch:
7+
8+
jobs:
9+
stale:
10+
runs-on: ubuntu-latest
11+
permissions:
12+
issues: write
13+
pull-requests: write
14+
steps:
15+
- uses: actions/stale@v9
16+
with:
17+
repo-token: ${{ secrets.GITHUB_TOKEN }}
18+
stale-issue-message: "This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions."
19+
exempt-issue-labels: "meta: never-stale"
20+
stale-issue-label: "meta: stale"
21+
days-before-stale: 90
22+
days-before-close: 10
23+
stale-pr-message: "This pull request has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions."
24+
exempt-pr-labels: "meta: never-stale"
25+
stale-pr-label: "meta: stale"
26+
days-before-pr-stale: 10
27+
days-before-pr-close: 5
28+
exempt-milestones: true
29+
ascending: true # old issues/PRs first
30+
operations-per-run: 1000 # default is 30, enlarge for dealing with more issues/PRs

0 commit comments

Comments
 (0)