-
Notifications
You must be signed in to change notification settings - Fork 96
33 lines (32 loc) · 1.33 KB
/
close_inactive_issues_prs.yaml
File metadata and controls
33 lines (32 loc) · 1.33 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
name: Close inactive issues and PRs
on:
schedule:
- cron: "30 1 * * *"
workflow_dispatch:
jobs:
close-issues:
runs-on: ubuntu-latest
permissions:
issues: write
pull-requests: write
steps:
- uses: actions/stale@v9
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
operations-per-run: 500 # API rate limit
## issues
# stale
days-before-issue-stale: 45 # for initial period, suggest 15
stale-issue-label: "stale"
stale-issue-message: "This issue is stale because it has been open for 45 days with no activity."
# close
days-before-issue-close: 365 # for initial period, suggest 30
close-issue-message: "This issue was closed because it has been inactive for 365 days since being marked as stale, please reopen if it's still applicable."
## PRs
# stale
days-before-pr-stale: 45 # for initial period, suggest 15
stale-pr-label: "stale"
stale-pr-message: "This PR is stale because it has been open for 45 days with no activity."
# close
days-before-pr-close: 365 # for initial period, suggest 30
close-pr-message: "This PR was closed because it has been inactive for 365 days since being marked as stale, please reopen if it's still applicable."