Skip to content

Commit 436fd17

Browse files
ci: add stale issues/pr job
1 parent 8f809c3 commit 436fd17

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: Weekly Schedule
2+
3+
on:
4+
workflow_dispatch: # Enable manual triggering
5+
schedule:
6+
- cron: '0 18 * * 1'
7+
8+
permissions:
9+
issues: write
10+
pull-requests: write
11+
12+
jobs:
13+
stale:
14+
runs-on: ubuntu-latest
15+
env:
16+
DAYS_BEFORE_STALE: 60
17+
steps:
18+
- uses: actions/stale@v9
19+
with:
20+
stale-issue-message: |
21+
This issue has been automatically marked as stale because it has had no recent activity in the last ${{ env.DAYS_BEFORE_STALE }} days.
22+
stale-pr-message: |
23+
This pull request has been automatically marked as stale because it has had no recent activity in the last ${{ env.DAYS_BEFORE_STALE }} days.
24+
days-before-stale: ${{ env.DAYS_BEFORE_STALE }}
25+
days-before-close: 0
26+
exempt-issue-labels: 'feature request,enhancement'

0 commit comments

Comments
 (0)