Skip to content

Commit f3b797d

Browse files
authored
add workflow to monitor issues (#536)
1 parent 2ac02c0 commit f3b797d

File tree

1 file changed

+35
-0
lines changed

1 file changed

+35
-0
lines changed

.github/workflows/monitorIssues.yml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: Monitor Issues
2+
on:
3+
workflow_dispatch:
4+
inputs:
5+
operations-per-run:
6+
description: 'Number of operations per run'
7+
required: false
8+
default: '30'
9+
schedule:
10+
- cron: "0 0 * * *" # Runs once a day at midnight
11+
jobs:
12+
monitor-issues:
13+
runs-on: ubuntu-latest
14+
permissions:
15+
issues: write
16+
steps:
17+
- uses: actions/stale@v9
18+
with:
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
24+
days-before-issue-close: 7
25+
# Name of the stale label
26+
stale-issue-label: "stale"
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"
28+
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."
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)