forked from metoppv/improver
-
Notifications
You must be signed in to change notification settings - Fork 0
62 lines (45 loc) · 1.95 KB
/
stale.yml
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
49
50
51
52
53
54
55
56
57
58
59
60
61
# See https://github.com/actions/stale
name: Stale pull-requests
on:
schedule:
# Run once a day
# N.B. "should" be quoted, according to
# https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#onschedule
- cron: "0 0 * * *"
jobs:
stale:
if: "github.repository == 'metoppv/improver'"
runs-on: ubuntu-latest
steps:
# Using actions/stale@v5
- uses: actions/stale@3cc123766321e9f15a6676375c154ccffb12a358
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
# Idle number of days before marking issues/prs stale.
days-before-issue-stale: -1
days-before-pr-stale: 60
# Idle number of days before closing stale issues/prs.
days-before-issue-close: -1
days-before-pr-close: 30
# Comment on the staled prs.
stale-pr-message: |
In order to maintain a backlog of relevant PRs, we automatically label them as stale after 60 days of inactivity.
If this PR is still important to you, then please comment on this PR and the stale label will be removed.
Otherwise this PR will be automatically closed in 30 days time.
# Comment on the staled prs while closed.
close-pr-message: |
This stale PR has been automatically closed due to a lack of activity.
If you still care about this PR, then please re-open this PR.
# Label to apply on staled prs.
stale-pr-label: Stale
# Labels on prs exempted from stale.
exempt-pr-labels:
"good first issue"
# Max number of operations per run.
operations-per-run: 300
# Remove stale label from issues/prs on updates/comments.
remove-stale-when-updated: true
# Order to get issues/PRs.
ascending: true
# Exempt all issues/prs with milestones from stale.
exempt-all-milestones: true