Skip to content

Commit 546fd36

Browse files
authored
[GHA] Tweaks to stale (cloudflare#26196)
* [GHA] Update wording for stale * update ops per run to bump higher * bump even higher * update days before close * Add labels to stale * Update wording on messaging
1 parent c206604 commit 546fd36

File tree

1 file changed

+9
-7
lines changed

1 file changed

+9
-7
lines changed

.github/workflows/close-stale-issues-prs.yml

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Close stale issues and pull requests (uses actions/stale@v4 with GITHUB_TOKEN)
22
on:
33
schedule:
4-
- cron: '0 0 * * 1' # weekly run: every Monday at 00:00 UTC
4+
- cron: "0 0 * * 1" # weekly run: every Monday at 00:00 UTC
55
workflow_dispatch:
66

77
permissions:
@@ -19,12 +19,14 @@ jobs:
1919
with:
2020
repo-token: ${{ secrets.GITHUB_TOKEN }}
2121
# Messages for issues (mention the issue author)
22-
stale-issue-message: 'Hello @{{author}}, this issue has been automatically marked as stale because it has not had recent activity. It will be auto-closed after and additional 10 days of inactivity. Please feel free to add a comment and we would be happy to continue working on it.'
23-
close-issue-message: 'Hello @{{author}}, this issue has been automatically closed due to 45 days of inactivity. If needed, please reopen or comment and we can reevaluate your request.'
22+
stale-issue-message: "Hey there, this issue has been automatically marked as stale because it has not had recent activity. It will be auto-closed after and additional 10 days of inactivity. If you need it open for longer, add the label `stale-exempt`."
23+
close-issue-message: "Hey there, this issue has been automatically closed due to 45 days of inactivity. If needed, please reopen or comment and we can reevaluate your request."
2424
# Messages for pull requests (mention the PR author)
25-
stale-pr-message: 'Hello @{{author}}, this pull request has been automatically marked as stale because it has not had recent activity. It will be auto-closed after and additional 10 days of inactivity. Please feel free to add a comment and we would be happy to continue working on it.'
26-
close-pr-message: 'Hello @{{author}}, this pull request has been automatically closed due to 45 days of inactivity. If needed, please reopen or comment and we can reevaluate your request.'
25+
stale-pr-message: "Hey there, this pull request has been automatically marked as stale because it has not had recent activity. It will be auto-closed after and additional 10 days of inactivity. If you need it open for longer, add the label `stale-exempt`."
26+
close-pr-message: "Hey there, this pull request has been automatically closed due to 45 days of inactivity. If needed, please reopen or comment and we can reevaluate your request."
2727
# Time thresholds (adjust to your policy)
2828
days-before-stale: 35
29-
days-before-close: 10
30-
operations-per-run: 5
29+
days-before-close: 15
30+
operations-per-run: 100
31+
exempt-pr-labels: stale-exempt
32+
exempt-issues-labels: stale-exempt

0 commit comments

Comments
 (0)