Skip to content

Commit 5f2ee98

Browse files
committed
ci: automate stale labeling for inactive draft PRs
ci: automate stale labeling for inactive draft PRs
1 parent a90ee17 commit 5f2ee98

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

.github/workflows/stale.yml

+5-1
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
1-
name: Close and mark stale issue
1+
name: Mark and close stale items
22

33
on:
44
schedule:
55
- cron: '0 12 * * *'
6+
workflow_dispatch:
67

78
permissions:
89
contents: read
@@ -28,5 +29,8 @@ jobs:
2829
days-before-issue-close: 3
2930
days-before-pr-stale: 5
3031
days-before-pr-close: 3
32+
draft-days-before-stale: 365 # Mark draft PRs as stale after 1 year
33+
draft-days-before-close: 30 # Close stale draft PRs after 30 days
3134
remove-stale-when-updated: true
3235
enable-statistics: true
36+

0 commit comments

Comments
 (0)