Skip to content

Commit 6aaa4b0

Browse files
authored
Enable Stale logic using GitHub Actions instead of app
1 parent 5d9a4a2 commit 6aaa4b0

File tree

1 file changed

+33
-0
lines changed

1 file changed

+33
-0
lines changed

.github/workflows/stale.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
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+
workflow_dispatch: ~
10+
schedule:
11+
- cron: '39 3 * * *'
12+
13+
jobs:
14+
stale:
15+
runs-on: ubuntu-latest
16+
permissions:
17+
issues: write
18+
19+
steps:
20+
- uses: actions/stale@v8
21+
with:
22+
repo-token: ${{ secrets.GITHUB_TOKEN }}
23+
days-before-stale: 60
24+
days-before-close: 7
25+
26+
# Do not stale PRs
27+
days-before-pr-stale: -1
28+
days-before-pr-close: -1
29+
30+
exempt-issue-labels: 'bug,maybe-later,help wanted'
31+
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.'
32+
stale-issue-label: 'wontfix'
33+
# debug-only: true

0 commit comments

Comments
 (0)