Skip to content

Commit c8f531e

Browse files
authored
Automating Inactive Issue Management (#2901)
1 parent 5bf6281 commit c8f531e

File tree

1 file changed

+23
-9
lines changed

1 file changed

+23
-9
lines changed

.github/workflows/staleIssues.yml

Lines changed: 23 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,35 @@
1-
name: Close inactive issues
1+
name: Monitor Issues
22
on:
33
workflow_dispatch:
4-
4+
inputs:
5+
operations-per-run:
6+
description: 'Number of operations per run'
7+
required: false
8+
default: '30'
9+
schedule:
10+
- cron: "0 */6 * * *" # Runs every 6 hours
511
jobs:
6-
close-issues:
12+
monitor-issues:
713
runs-on: ubuntu-latest
814
permissions:
915
issues: write
10-
pull-requests: write
1116
steps:
1217
- uses: actions/stale@v9
1318
with:
14-
days-before-issue-stale: 90
19+
# Ignore issues with these labels
20+
exempt-issue-labels: 'feature request,question'
21+
# Days of inactivity before marking an issue as stale
22+
days-before-issue-stale: 180
23+
# Days of inactivity before closing an issue
1524
days-before-issue-close: 7
25+
# Name of the stale label
1626
stale-issue-label: "stale"
17-
stale-issue-message: "This issue has been marked as stale due to 90 days of inactivity. If you wish to keep it open, please remove the stale label or leave a comment; otherwise, it will be closed in 7 days."
27+
stale-issue-message: "This issue has been marked as stale due to 6 months of inactivity. As part of our effort to address every issue properly, please feel free to remove the stale label or keep this issue active by leaving a comment. Otherwise, it will be closed in 7 days"
1828
close-issue-message: "This issue was closed due to 7 days of inactivity after being marked as stale. Feel free to reopen it if it remains relevant."
19-
any-of-issue-labels: 'bug'
20-
debug-only: 'true'
21-
repo-token: ${{ secrets.GITHUB_TOKEN }}
29+
# Ignore pull requests
30+
days-before-pr-close: false
31+
days-before-pr-stale: false
32+
ascending: true
33+
# Get from input or resolve to default
34+
operations-per-run: ${{ github.event.inputs.operations-per-run || '30' }}
35+
repo-token: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)