Skip to content

Commit d008d5c

Browse files
authored
🔧Add new stale bot (#1406)
The old stale bot stopped working after GitHub deprecated the old way of doing things.
1 parent 21ce300 commit d008d5c

File tree

2 files changed

+38
-62
lines changed

2 files changed

+38
-62
lines changed

.github/stale.yml

Lines changed: 0 additions & 62 deletions
This file was deleted.

.github/workflows/stale.yml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
# This workflow warns and then closes issues and PRs that have had no activity for a specified amount of time.
2+
#
3+
# You can adjust the behavior by modifying this file.
4+
# For more information, see:
5+
# https://github.com/actions/stale
6+
name: Mark stale issues and pull requests
7+
8+
on:
9+
schedule:
10+
- cron: '0 2 * * *' # Runs every day at 02:00 UTC
11+
12+
jobs:
13+
stale:
14+
15+
runs-on: ubuntu-latest
16+
permissions:
17+
issues: write
18+
pull-requests: write
19+
20+
steps:
21+
- uses: actions/stale@v5
22+
with:
23+
repo-token: ${{ secrets.GITHUB_TOKEN }}
24+
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.'
25+
stale-pr-message: 'This PR is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 7 days.'
26+
stale-issue-label: 'no-issue-activity'
27+
stale-pr-label: 'no-pr-activity'
28+
close-issue-message: 'This issue was automatically closed due to inactivity.'
29+
close-pr-message: 'This PR was automatically closed due to inactivity.'
30+
days-before-issue-stale: 30
31+
days-before-pr-stale: 60
32+
days-before-issue-close: 7
33+
days-before-pr-close: 7
34+
exempt-issue-labels: 'pinned'
35+
exempt-pr-labels: 'pinned'
36+
exempt-draft-pr: false
37+
exempt-milestones: true
38+
exempt-all-milestones: true

0 commit comments

Comments
 (0)