Skip to content

Commit 5cfe58f

Browse files
chore: add workflow for stale prs and issue type bug (#2580)
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
1 parent 400ddf8 commit 5cfe58f

File tree

1 file changed

+41
-0
lines changed

1 file changed

+41
-0
lines changed

.github/workflows/stale.yml

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
name: Stale Issues and PRs
2+
3+
on:
4+
schedule:
5+
# Run daily at 2 AM UTC
6+
- cron: '0 2 * * *'
7+
workflow_dispatch: # Allow manual trigger
8+
9+
permissions:
10+
issues: write
11+
pull-requests: write
12+
13+
jobs:
14+
stale-bugs:
15+
runs-on: ubuntu-latest
16+
steps:
17+
- uses: actions/stale@b5d41d4e1d5dceea10e7104786b73624c18a190f
18+
with:
19+
days-before-issue-stale: 30
20+
days-before-issue-close: 7
21+
days-before-pr-stale: -1
22+
days-before-pr-close: -1
23+
remove-stale-when-updated: true
24+
only-issue-types: 'bug'
25+
stale-issue-label: 'stale'
26+
close-issue-label: 'stale'
27+
operations-per-run: 500
28+
29+
stale-prs:
30+
runs-on: ubuntu-latest
31+
steps:
32+
- uses: actions/stale@b5d41d4e1d5dceea10e7104786b73624c18a190f
33+
with:
34+
days-before-issue-stale: -1
35+
days-before-issue-close: -1
36+
days-before-pr-stale: 30
37+
days-before-pr-close: 7
38+
remove-stale-when-updated: true
39+
stale-pr-label: 'stale'
40+
close-pr-label: 'stale'
41+
operations-per-run: 500

0 commit comments

Comments
 (0)