Skip to content

Commit ca087f2

Browse files
Add initial "dry run" action for stale issues/PRs (#3170)
1 parent c2cc217 commit ca087f2

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: 'Close stale issues and PRs'
2+
on:
3+
schedule:
4+
- cron: '30 1 * * *'
5+
6+
jobs:
7+
stale:
8+
runs-on: ubuntu-latest
9+
steps:
10+
- uses: actions/stale@v8
11+
with:
12+
stale-issue-message: 'This issue is marked stale because it has been open 30 days with no activity. Remove stale label or update the issue, otherwise it will be closed in 14 days.'
13+
stale-pr-message: 'This PR is marked stale because it has been open 60 days with no activity. Remove stale label or update the PR, otherwise it will be closed in 14 days.'
14+
close-issue-message: 'This issue was closed because it has been stalled for 14 days with no activity.'
15+
close-pr-message: 'This PR was closed because it has been stalled for 14 days with no activity.'
16+
only-issue-labels: Waiting on feedback # Only consider issues with 'Waiting on feedback' labels
17+
exempt-draft-pr: true # Do not consider a draft PR stale
18+
exempt-all-pr-milestones: true # Do not consider a PR associated with a Milestone stale
19+
days-before-stale: 30
20+
days-before-pr-stale: 60
21+
days-before-close: 14
22+
ascending: true # Start with the oldest issues/PRs first
23+
debug-only: true # Currently only doing "dry runs" until we're satisfied with the configuration
24+
operations-per-run: 1000 # GitHub API calls are rate limited. When debug-only is "false", this value should be approx. 30 (default) or less

0 commit comments

Comments
 (0)