Skip to content

Commit 474f81f

Browse files
committed
wip - creating a new stale workflow
1 parent a0ff9b4 commit 474f81f

File tree

1 file changed

+41
-0
lines changed

1 file changed

+41
-0
lines changed

Diff for: .github/workflows/new-stale.yml

+41
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
name: 'Close Stale PRs'
2+
on:
3+
schedule:
4+
- cron: '0 0 * * *' # Run every day at midnight
5+
workflow_dispatch:
6+
inputs:
7+
debug-only:
8+
type: boolean
9+
description: "Does a dry-run when enabled. No PR's will be altered"
10+
required: true
11+
default: true
12+
13+
jobs:
14+
stale:
15+
runs-on: ubuntu-latest
16+
steps:
17+
- uses: actions/stale@v9
18+
with:
19+
stale-pr-message: |
20+
'This Pull Request has been automatically marked as stale because it has not had recent activity during last 60 days :sleeping:
21+
22+
It will be closed in 30 days if no further activity occurs. To unstale this PR, draft it, remove stale label, comment with a detailed explanation or push more commits.
23+
24+
There can be many reasons why some specific PR has no activity. The most probable cause is lack of time, not lack of interest.
25+
26+
Thank you for your patience :heart:'
27+
close-pr-message: |
28+
This Pull Request has been automatically closed because it has been inactive during the last 30 days since being marked as stale.
29+
30+
As author or maintainer, it can always be reopened if you see that carry on been useful.
31+
32+
Anyway, thank you for your interest in contribute :heart:
33+
days-before-pr-stale: 60
34+
days-before-pr-close: 30
35+
days-before-issue-stale: -1 # Don't mark issues as stale
36+
days-before-issue-close: -1 # Don't close issues
37+
stale-pr-label: 'stale'
38+
exempt-pr-labels: 'keep' # Don't mark PR's with this label as stale
39+
labels-to-remove-when-unstale: 'stale'
40+
exempt-draft-pr: true
41+
# delete-branch: true

0 commit comments

Comments
 (0)