-
Notifications
You must be signed in to change notification settings - Fork 11
26 lines (25 loc) · 1.23 KB
/
stale.yaml
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
on:
schedule:
- cron: "42 3 * * *"
# see https://docs.github.com/en/actions/managing-issues-and-pull-requests/closing-inactive-issues
jobs:
stale-issues:
name: Close inactive issues and PRs
runs-on: ubuntu-latest
permissions:
issues: write
pull-requests: write
steps:
- uses: actions/stale@28ca1036281a5e5922ead5184a1bbf96e5fc984e # v9.0.0
with:
days-before-issue-stale: 365
days-before-issue-close: 7
stale-issue-label: "stale"
stale-issue-message: "This issue is stale because it has been open for over a year with no activity. Remove stale label or add a comment to avoid this being closed in a weeks time."
close-issue-message: "This issue was closed because it has been inactive for a week since being marked as stale."
days-before-pr-stale: 60
days-before-pr-close: 7
stale-pr-label: "stale"
stale-pr-message: "This PR is stale because it has been open for two months with no activity. Remove stale label or add a comment to avoid this being closed in a weeks time."
close-pr-message: "This PR was closed because it has been inactive for a week since being marked as stale."
ascending: true