-
Notifications
You must be signed in to change notification settings - Fork 454
32 lines (32 loc) · 1.71 KB
/
close-old-issues.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
name: Close Old Issues
on:
workflow_dispatch:
inputs:
inactive-days:
description: "inactive-days: Specify how many days the issue has to have had no activity to get the 'stale-old' label."
type: number
default: 720
stale-label-days:
description: "stale-label-days: Specify how many days the issue has to have had the 'stale-old' label to be closed. Must be >= 14 days or will default to -1 days (never)."
type: number
default: -1
jobs:
stale:
runs-on: ubuntu-latest
env:
stale-days: ${{ github.event.inputs.inactive-days || 720 }}
close-days: ${{ github.event.inputs.stale-label-days >= 14 && github.event.inputs.stale-label-days || -1 }}
stale-label: stale-test
stale-exempt-label: stale-exempt
steps:
- uses: actions/[email protected]
with:
stale-issue-label: ${{ env.stale-label }}
exempt-issue-labels: ${{ env.stale-exempt-label }}
days-before-pr-stale: -1
days-before-pr-close: -1
days-before-stale: ${{ env.stale-days }}
stale-issue-message: "This issue is now marked as '${{ env.stale-label }}' due to there being no activity on it for the past ${{ env.stale-days }} days. Unless the '${{ env.stale-label }}' label is removed or the issue is commented on, this will be remain open for at least 14 days and then it may be closed. If you would like to make this issue exempt from getting stale, please add the '${{ env.stale-exempt-label }}' label."
days-before-close: 0
close-issue-message: "This issue is now closed due to there being no activity on it for the past ${{ env.close-days }} days since being marked as '${{ env.stale-label }}'."
operations-per-run: 400