Skip to content

Commit 2ad2d8a

Browse files
committed
Add stale issues/PRs workflow
Adds a GitHub Actions workflow using actions/stale@v10 to automatically label and close inactive issues and pull requests after 60+21 days. Discussion: #9878 Signed-off-by: Matt Liberty <mliberty@precisioninno.com>
1 parent 46ea257 commit 2ad2d8a

1 file changed

Lines changed: 37 additions & 0 deletions

File tree

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
name: Mark stale issues and pull requests
2+
3+
on:
4+
schedule:
5+
- cron: "0 0 * * *"
6+
workflow_dispatch:
7+
8+
jobs:
9+
Stale:
10+
runs-on: ${{ vars.USE_SELF_HOSTED == 'true' && 'self-hosted' || 'ubuntu-latest' }}
11+
12+
permissions:
13+
# Required to label and close stale issues.
14+
issues: write
15+
# Required to label and close stale pull requests.
16+
pull-requests: write
17+
18+
steps:
19+
- uses: actions/stale@v10
20+
with:
21+
days-before-stale: 60
22+
days-before-close: 21
23+
stale-issue-label: Stale
24+
stale-pr-label: Stale
25+
stale-issue-message: >
26+
This issue has been automatically marked as stale because it has not
27+
had recent activity. It will be closed in 21 days if no further
28+
activity occurs. Remove the `Stale` label or comment to keep it open.
29+
stale-pr-message: >
30+
This pull request has been automatically marked as stale because it
31+
has not had recent activity. It will be closed in 21 days if no
32+
further activity occurs. Remove the `Stale` label or comment to keep
33+
it open.
34+
close-issue-reason: not_planned
35+
exempt-issue-labels: pinned,security
36+
exempt-pr-labels: pinned,security
37+
operations-per-run: 100

0 commit comments

Comments
 (0)