Skip to content

Commit e50043a

Browse files
authored
ci: switch to reusable worfklow to handle stale issues (#212)
Fixes #176
1 parent d73ad70 commit e50043a

File tree

1 file changed

+3
-20
lines changed

1 file changed

+3
-20
lines changed

.github/workflows/stale.yml

Lines changed: 3 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,34 +1,17 @@
1-
# Ref: https://github.com/actions/stale
21
name: Handle stale issues and PRs
32

43
on:
54
schedule:
6-
# run once a week at midnight of sunday
7-
- cron: 0 0 * * 0
5+
# run once a month at midnight of the first day of the month
6+
- cron: 0 0 1 * *
87
workflow_dispatch: # run manually from actions tab
98

109
# Set permissions at the job level.
1110
permissions: {}
1211

1312
jobs:
1413
stale:
15-
runs-on: ubuntu-24.04
1614
permissions:
1715
issues: write
1816
pull-requests: write
19-
steps:
20-
- uses: actions/stale@28ca1036281a5e5922ead5184a1bbf96e5fc984e # v9.0.0
21-
with:
22-
days-before-stale: 60
23-
# handle issues: set to abandoned, close after 7 days with message
24-
days-before-issue-close: 7
25-
stale-issue-label: 'status: abandoned'
26-
stale-issue-message: |
27-
This issue is stale because it has been open 60 days without activity.
28-
Remove 'abandoned' label or comment or this will be closed in 7 days.
29-
close-issue-message: This issue was closed because it has been stalled for 7 days with no activity.
30-
31-
# handle pull requests: set to abandoned, but do not close per bot
32-
days-before-pr-close: -1 # never close PRs
33-
stale-pr-label: 'status: abandoned'
34-
stale-pr-message: This PR is stale because it has been open 60 days without activity.
17+
uses: afuetterer/.github/.github/workflows/_stale.yml@main

0 commit comments

Comments
 (0)