master
yml 36 lines 1.41 KB
Raw
1 name: "Close stale issues and PRs"
2 on:
3 schedule:
4 - cron: "1 2 * * *"
5 workflow_dispatch:
6
7 permissions:
8 actions: write
9 contents: write
10 issues: write
11 pull-requests: write
12
13 jobs:
14 stale:
15 runs-on: ubuntu-latest
16 steps:
17 - uses: actions/stale@v9
18 with:
19 # Issues configuration
20 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."
21 close-issue-message: "This issue has been automatically closed due to inactivity. If you believe this is still relevant, please feel free to reopen it."
22 close-issue-label: "Closed"
23 stale-issue-label: "Stale"
24 exempt-issue-labels: "pinned,important,Closed"
25
26 # PRs configuration
27 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."
28 close-pr-message: "This pull request has been automatically closed due to inactivity. If you'd like to continue working on it, please reopen it."
29 close-pr-label: "Closed"
30 stale-pr-label: "Stale"
31 exempt-pr-labels: "pinned,important,Closed"
32 exempt-draft-pr: true
33
34 # Common configuration
35 operations-per-run: 5000
36 ascending: true