Skip to content

Commit cc6dc6a

Browse files
committed
github: Add stale workflow.
1 parent 9517f86 commit cc6dc6a

1 file changed

Lines changed: 46 additions & 0 deletions

File tree

.github/workflows/stale.yml

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
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+
permissions:
37+
actions: write
38+
issues: write
39+
40+
jobs:
41+
stale:
42+
uses: linuxmint/github-actions/.github/workflows/stale-issues.yml@master
43+
with:
44+
days-before-stale: ${{ fromJSON(inputs.days-before-stale || '730') }}
45+
days-before-close: ${{ fromJSON(inputs.days-before-close || '30') }}
46+
dry-run: ${{ inputs.dry-run || false }}

0 commit comments

Comments
 (0)