Skip to content

Commit 2d9e0a2

Browse files
committed
.github: Add stale workflow.
1 parent 53fb90d commit 2d9e0a2

1 file changed

Lines changed: 42 additions & 0 deletions

File tree

.github/workflows/stale.yml

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
name: Stale Issues
2+
3+
on:
4+
schedule:
5+
# Run weekly on Sunday at 2:00 AM UTC
6+
- cron: '0 2 * * 0'
7+
workflow_dispatch:
8+
inputs:
9+
days-before-stale:
10+
description: 'Days of inactivity before marking stale (4y, 3y, 2y, 1y, 180d, 90d)'
11+
required: false
12+
default: '730'
13+
type: choice
14+
options:
15+
- '1460'
16+
- '1095'
17+
- '730'
18+
- '365'
19+
- '180'
20+
- '90'
21+
days-before-close:
22+
description: 'Days after stale label before closing'
23+
required: false
24+
default: '30'
25+
type: choice
26+
options:
27+
- '30'
28+
- '14'
29+
- '7'
30+
dry-run:
31+
description: 'Dry run - log actions without making changes'
32+
required: false
33+
default: false
34+
type: boolean
35+
36+
jobs:
37+
stale:
38+
uses: linuxmint/github-actions/.github/workflows/stale-issues.yml@master
39+
with:
40+
days-before-stale: ${{ fromJSON(inputs.days-before-stale || '730') }}
41+
days-before-close: ${{ fromJSON(inputs.days-before-close || '30') }}
42+
dry-run: ${{ inputs.dry-run || false }}

0 commit comments

Comments
 (0)