-
Notifications
You must be signed in to change notification settings - Fork 217
38 lines (34 loc) · 1.19 KB
/
dormant.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
# This workflow warns and then closes issues and PRs that have had no activity for a specified amount of time.
#
# You can adjust the behavior by modifying this file.
# For more information, see:
# https://github.com/actions/stale
name: Manage dormant issues
on:
workflow_dispatch:
inputs:
test-run:
description: 'Dry run only (y/n)?'
required: false
default: 'y'
schedule:
- cron: '30 8 * * *'
jobs:
stale:
runs-on: ubuntu-latest
permissions:
issues: write
steps:
- uses: actions/stale@v4
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
days-before-pr-stale: -1
days-before-issue-stale: 30
stale-issue-label: 'dormant'
only-labels: 'bug'
exempt-issue-labels: 'resolved,waiting fix confirmation,help wanted,backlog'
stale-issue-message: 'This issue has been marked dormant because the last update is at least 30 days ago. If no update is made with the next 7 days, the issue will be closed.'
days-before-close: 7
start-date: '2020-01-01T00:00:00Z' # ISO 8601 or RFC 2822
operations-per-run: 10
debug-only: ${{ (github.event.inputs.test-run == 'y') }}