Skip to content

Commit d78cd3b

Browse files
committed
feat: add stale workflow
1 parent d69dac4 commit d78cd3b

File tree

1 file changed

+39
-0
lines changed

1 file changed

+39
-0
lines changed

.github/workflows/stale.yml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
name: Stale Issues and PRs
2+
on:
3+
schedule:
4+
- cron: "0 8 * * *"
5+
workflow_dispatch:
6+
inputs:
7+
dryRun:
8+
description: Set to true for a dry run
9+
required: false
10+
default: "false"
11+
type: string
12+
13+
jobs:
14+
stale:
15+
runs-on: ubuntu-latest
16+
steps:
17+
- name: Stale issues and PRs
18+
id: stale-issues-and-prs
19+
uses: actions/stale@5bef64f19d7facfb25b37b414482c7164d639639 # v9.1.0
20+
with:
21+
close-issue-message: |
22+
This issue was closed because it has been stalled for 90 days with no activity.
23+
close-issue-reason: 'not_planned'
24+
close-pr-message: |
25+
This PR was closed because it has been stalled for 90 days with no activity.
26+
# Set days-before-close to 30 because we want to close the issue/PR after 90 days total, since days-before-stale is set to 60
27+
days-before-close: 30
28+
days-before-stale: 60
29+
debug-only: ${{ inputs.dryRun }}
30+
exempt-issue-labels: 'good first issue,help wanted'
31+
repo-token: ${{ secrets.GITHUB_TOKEN }}
32+
stale-issue-label: 'stale'
33+
stale-issue-message: |
34+
This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 30 days.
35+
stale-pr-label: 'stale'
36+
stale-pr-message: |
37+
This PR is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 30 days.
38+
start-date: "2021-02-09"
39+
operations-per-run: 1000

0 commit comments

Comments
 (0)