Skip to content

Commit 426abd8

Browse files
authored
Configure stalebot in dry-run mode
1 parent 9cabb94 commit 426abd8

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed

.github/workflow/stale.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: Stale
2+
3+
# **What it does**: Close pull requests after no updates for 180 days.
4+
# **Why we have it**: This repository gets a lot of PRs, and the maintainers team is small.
5+
# This helps reduce the open PRs to ones that are most desired by the community.
6+
# **Who does it impact**: Contributors and maintainers of github/gitignore.
7+
8+
on:
9+
schedule:
10+
- cron: '20 16 * * *' # Run every day at 16:20 UTC / 8:20 PST
11+
12+
permissions:
13+
actions: write
14+
contents: write # only for delete-branch option
15+
issues: write
16+
pull-requests: write
17+
18+
jobs:
19+
stale:
20+
runs-on: ubuntu-latest
21+
steps:
22+
- uses: actions/stale@5bef64f19d7facfb25b37b414482c7164d639639 # v9.1.0
23+
with:
24+
stale-pr-message: 'This PR is stale because there have been no updates in 90 days. It will close after 180 days of inactivity. Leave a comment if you want to keep it open :smile:'
25+
close-pr-message: 'This PR has been closed because it was inactive for 180 days. If you want to continue working on it, please open a new PR.'
26+
days-before-stale: 90
27+
days-before-close: 180
28+
stale-pr-label: 'stale'
29+
exempt-pr-labels: 'keep'
30+
close-issue-reason: not_planned
31+
ascending: true # Sort PRs by last updated date in ascending order
32+
debug-only: true # Set to true to test the action without actually closing any PRs

0 commit comments

Comments
 (0)