-
Notifications
You must be signed in to change notification settings - Fork 5k
53 lines (49 loc) · 1.74 KB
/
stale_issues.yml
File metadata and controls
53 lines (49 loc) · 1.74 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
49
50
51
52
53
# Marks and closes inactive (stale) issues
# Runs: every 10 minutes from 00:00 to 05:59
name: Mark stale issues
on:
schedule:
# Every 20 minutes from 00:00 to 05:59
- cron: "*/20 0-5 * * *"
workflow_dispatch:
inputs:
debug-only:
description: "Dry run (no changes, logs only)"
required: false
default: false
type: boolean
days-before-stale:
description: "Days of inactivity before marking as stale"
required: false
default: "547"
type: string
days-before-close:
description: "Days after stale warning before closing"
required: false
default: "30"
type: string
operations-per-run:
description: "Maximum GitHub API operations per run (optional; default 1000 if
omitted)"
required: false
type: string
permissions:
actions: write
issues: write
contents: read
jobs:
stale:
name: Mark and close stale issues
runs-on: ubuntu-latest
steps:
- name: Run stale issues action
uses: PrestaShop/.github/.github/actions/stale@master
with:
days-before-stale: ${{ github.event.inputs.days-before-stale || '547' }}
days-before-close: ${{ github.event.inputs.days-before-close || '30' }}
operations-per-run: ${{ github.event.inputs.operations-per-run || '1000' }}
exempt-issue-labels: "Critical, Security, Major, Good first issue, EPIC,
Topwatchers, Blocked, Must-have, Waiting for dev, Waiting for QA,
Waiting for QA by Community, Waiting for PM, Waiting for UX, Waiting
for rebase, Waiting for wording, Release, Detected by TE, 9.1.x"
debug-only: ${{ github.event.inputs.debug-only || 'false' }}