-
-
Notifications
You must be signed in to change notification settings - Fork 0
48 lines (43 loc) · 1.55 KB
/
cron--close-stale.yaml
File metadata and controls
48 lines (43 loc) · 1.55 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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
name: Close stale issues and pull requests
# Closes stale issues and pull requests when there is no activity for a long
# period of time. Helps keeps the amount of open issues and pull requests down.
on:
schedule: [cron: '0 1 * * *']
workflow_dispatch:
permissions:
actions: write
contents: write
issues: write
pull-requests: write
jobs:
close-issues-and-pull-requests:
name: Close stale issues and pull requests
runs-on: ubuntu-latest
steps:
- name: Close stale issues and pull requests
uses: actions/stale@v10
with:
# Issues
stale-issue-label: stale
close-issue-label: not planned
days-before-issue-stale: 30
days-before-issue-close: 5
stale-issue-message: >
This issue is stale because it has been open 30 days with no
activity. Remove stale label or comment or this will be
closed in 5 days.
close-issue-message: >
This issue was closed because it has been stalled for 5 days with
no activity.
# Pull requests
stale-pr-label: stale
close-pr-label: not planned
days-before-pr-stale: 45
days-before-pr-close: 10
stale-pr-message: >
This PR is stale because it has been open 45 days with no
activity. Remove stale label or comment or this will be closed in
10 days.
close-pr-message: >
This pull request was closed because it has been stalled for 10
days with no activity.