Skip to content

Commit 6d1bf82

Browse files
authored
Mark and Remove Stale Issues and PRs (#5437)
1 parent 23e23b0 commit 6d1bf82

File tree

2 files changed

+44
-24
lines changed

2 files changed

+44
-24
lines changed

.github/workflows/stale.yml

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
name: Mark and Remove Stale Issues and PRs
2+
on:
3+
schedule:
4+
- cron: '0 19 * * 0' # every Sunday at 19:00 UTC
5+
workflow_dispatch:
6+
7+
jobs:
8+
stale:
9+
runs-on: ubuntu-latest
10+
permissions:
11+
issues: write
12+
pull-requests: write
13+
14+
steps:
15+
- name: Mark and Close Stale Issues and PRs
16+
uses: actions/stale@v9
17+
with:
18+
repo-token: ${{ secrets.GITHUB_TOKEN }}
19+
20+
# === PR settings ===
21+
stale-pr-message: >
22+
This PR has been marked stale due to 30 days of inactivity.
23+
Please comment or remove the stale label to keep it open.
24+
It will be closed in 5 days if no further activity occurs.
25+
close-pr-message: >
26+
Closing this PR after 5 additional days of inactivity since being marked stale.
27+
stale-pr-label: 'no-pr-activity'
28+
days-before-pr-stale: 30
29+
days-before-pr-close: 5
30+
31+
# === Issue settings ===
32+
stale-issue-message: >
33+
This issue has been automatically marked as stale due to 60 days of inactivity.
34+
Please comment or remove the stale label to keep it open.
35+
It will be closed in 7 days if no further activity occurs.
36+
close-issue-message: >
37+
Closing this issue after 7 additional days of inactivity since being marked stale.
38+
stale-issue-label: 'no-issue-activity'
39+
days-before-issue-stale: 60
40+
days-before-issue-close: 7
41+
42+
# === General ===
43+
operations-per-run: 200
44+
remove-stale-when-updated: true

.github/workflows/stale_pr.yml

Lines changed: 0 additions & 24 deletions
This file was deleted.

0 commit comments

Comments
 (0)