-
Notifications
You must be signed in to change notification settings - Fork 2
45 lines (45 loc) · 1.82 KB
/
stale.yaml
File metadata and controls
45 lines (45 loc) · 1.82 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
---
name: "Close stale issues and PR"
on:
workflow_dispatch:
schedule:
- cron: "30 1 * * *" # https://crontab.guru/#30_1_*_*_* (everyday at 0130)
permissions:
contents: read
jobs:
stale:
runs-on: ubuntu-latest
permissions:
issues: write
pull-requests: write
steps:
- name: Harden the runner (Audit all outbound calls)
uses: step-security/harden-runner@8d3c67de8e2fe68ef647c8db1e6a09f647780f40 # v2.19.0
with:
egress-policy: audit
- uses: actions/stale@b5d41d4e1d5dceea10e7104786b73624c18a190f # v10.2.0
with:
operations-per-run: 200
ascending: true
delete-branch: true
stale-issue-message: >
This issue is stale because it has been open 10 days with no activity.
Replace the `no-issue-activity` label with a `work-in-progress` 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.
days-before-issue-stale: 10
days-before-issue-close: 5
stale-issue-label: "no-issue-activity"
exempt-issue-labels: "awaiting-approval,work-in-progress,keep"
stale-pr-message: >
This PR is stale because it has been open 20 days with no activity.
Replace the `no-pr-activity` label with a `work-in-progress` label or comment or
this will be closed in 5 days.
close-pr-message: >
This PR was closed because it has been stalled for 5 days with no activity.
days-before-pr-stale: 20
days-before-pr-close: 5
stale-pr-label: "no-pr-activity"
exempt-pr-labels: "awaiting-approval,work-in-progress,dependencies,keep"
exempt-pr-assignees: "snyk-github"