Skip to content

Commit fae00c5

Browse files
committed
add stalebot
1 parent d932a6b commit fae00c5

File tree

1 file changed

+44
-0
lines changed

1 file changed

+44
-0
lines changed

.github/workflows/stale.yml

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
name: 'Close stale Issues and Pull Requests'
2+
3+
env:
4+
STALE_AFTER_INACTIVE_DAYS: 90
5+
CLOSE_AFTER_INACTIVE_DAYS: 7
6+
7+
on:
8+
schedule:
9+
- cron: '1 3 * * 0' # runs every Sunday at 03h01 UTC
10+
# - cron: '0 * * * *' # runs every hour, for debugging
11+
jobs:
12+
stale:
13+
permissions:
14+
issues: write
15+
pull-requests: write
16+
if: github.repository == 'geopython/OWSLib'
17+
runs-on: ubuntu-latest
18+
steps:
19+
- uses: 'actions/stale@v9'
20+
with:
21+
# debug-only: true
22+
operations-per-run: 1000
23+
enable-statistics: true
24+
stale-issue-label: stale
25+
stale-pr-label: stale
26+
exempt-issue-labels: blocker
27+
exempt-pr-labels: blocker
28+
days-before-stale: ${{ env.STALE_AFTER_INACTIVE_DAYS }}
29+
days-before-close: ${{ env.CLOSE_AFTER_INACTIVE_DAYS }}
30+
remove-stale-when-updated: true
31+
stale-issue-message: >
32+
This Issue has been inactive for ${{env.STALE_AFTER_INACTIVE_DAYS }}
33+
days. In order to manage maintenance burden, it will be automatically closed
34+
in ${{ env.CLOSE_AFTER_INACTIVE_DAYS }} days.
35+
stale-pr-message: >
36+
This Pull Request has been inactive for ${{env.STALE_AFTER_INACTIVE_DAYS }}
37+
days. In order to manage maintenance burden, it will be automatically closed
38+
in ${{ env.CLOSE_AFTER_INACTIVE_DAYS }} days.
39+
close-issue-message: >
40+
This Issue has been closed due to there being no activity for more
41+
than ${{ env.STALE_AFTER_INACTIVE_DAYS }} days.
42+
close-pr-message: >
43+
This Pull Request has been closed due to there being no activity for more
44+
than ${{ env.STALE_AFTER_INACTIVE_DAYS }} days.

0 commit comments

Comments
 (0)