Skip to content

Commit c3f5ae3

Browse files
committed
testing purpose
1 parent 2a2e218 commit c3f5ae3

File tree

2 files changed

+51
-0
lines changed

2 files changed

+51
-0
lines changed
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: Monitor Issues
2+
3+
on:
4+
workflow_call:
5+
inputs:
6+
operations-per-run:
7+
description: 'Number of operations per run'
8+
required: false
9+
default: '30'
10+
secrets:
11+
repo-token:
12+
description: 'GitHub token used to authenticate and modify issues'
13+
required: true
14+
15+
jobs:
16+
monitor-issues:
17+
runs-on: ubuntu-latest
18+
permissions:
19+
issues: write
20+
steps:
21+
- uses: actions/stale@v9
22+
with:
23+
exempt-issue-labels: 'feature request,question'
24+
days-before-issue-stale: 0
25+
days-before-issue-close: 0
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+
days-before-pr-close: false
30+
days-before-pr-stale: false
31+
ascending: true
32+
operations-per-run: ${{ inputs.operations-per-run }}
33+
repo-token: ${{ secrets.repo-token }}
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
name: Test Monitor Issues
2+
3+
on:
4+
workflow_dispatch:
5+
inputs:
6+
operations-per-run:
7+
description: 'Number of operations per run'
8+
required: false
9+
default: '30'
10+
schedule:
11+
- cron: "0 0 * * *" # Runs once a day at midnight
12+
13+
jobs:
14+
monitor-issues:
15+
uses: ./.github/actions/monitor-issues/monitor-issues.yml
16+
with:
17+
repo-token: ${{ secrets.GITHUB_TOKEN }}
18+
operations-per-run: 10

0 commit comments

Comments
 (0)