Skip to content

Commit 3e695e1

Browse files
authored
Merge pull request #558 from ANXS/feature/workflow-stale-bot
Feature/workflow stale bot
2 parents 472fb6f + 6170c45 commit 3e695e1

File tree

1 file changed

+36
-0
lines changed

1 file changed

+36
-0
lines changed

.github/workflows/stale.yml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
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: '35 23 * * *'
11+
12+
jobs:
13+
stale:
14+
runs-on: ubuntu-latest
15+
permissions:
16+
issues: write
17+
pull-requests: write
18+
steps:
19+
- uses: actions/stale@v9
20+
with:
21+
repo-token: ${{ secrets.GITHUB_TOKEN }}
22+
days-before-stale: 120
23+
days-before-close: 60
24+
exempt-issue-labels: bug
25+
exempt-pr-labels: bug
26+
stale-issue-label: "stale"
27+
stale-pr-label: "stale"
28+
stale-issue-message: |
29+
This issue has been marked 'stale' due to lack of recent activity. If there is no further activity, the issue will be closed in another 30 days. Thank you for your contribution!
30+
close-issue-message: |
31+
This issue has been closed due to inactivity. If you feel this is in error, please reopen the issue or file a new issue with the relevant details.
32+
stale-pr-message: |
33+
This pr has been marked 'stale' due to lack of recent activity. If there is no further activity, the issue will be closed in another 30 days. Thank you for your contribution!
34+
close-pr-message: |
35+
This pr has been closed due to inactivity. If you feel this is in error, please reopen the issue or file a new issue with the relevant details.
36+
repo-token: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)