Skip to content

Commit

Permalink
add stalebot
Browse files Browse the repository at this point in the history
  • Loading branch information
tomkralidis committed Sep 29, 2024
1 parent 4633c61 commit 6a3df67
Showing 1 changed file with 44 additions and 0 deletions.
44 changes: 44 additions & 0 deletions .github/workflows/stale.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
name: 'Close stale Issues and Pull Requests'

env:
STALE_AFTER_INACTIVE_DAYS: 90
CLOSE_AFTER_INACTIVE_DAYS: 7

on:
schedule:
- cron: '1 3 * * 0' # runs every Sunday at 03h01 UTC
# - cron: '0 * * * *' # runs every hour, for debugging
jobs:
stale:
permissions:
issues: write
pull-requests: write
if: github.repository == 'geopython/OWSLib'
runs-on: ubuntu-latest
steps:
- uses: 'actions/stale@v9'
with:
# debug-only: true
operations-per-run: 1000
enable-statistics: true
stale-issue-label: stale
stale-pr-label: stale
exempt-issue-labels: blocker
exempt-pr-labels: blocker
days-before-stale: ${{ env.STALE_AFTER_INACTIVE_DAYS }}
days-before-close: ${{ env.CLOSE_AFTER_INACTIVE_DAYS }}
remove-stale-when-updated: true
stale-issue-message: >
This Issue has been inactive for ${{env.STALE_AFTER_INACTIVE_DAYS }}
days. In order to manage maintenance burden, it will be automatically closed
in ${{ env.CLOSE_AFTER_INACTIVE_DAYS }} days.
stale-pr-message: >
This Pull Request has been inactive for ${{env.STALE_AFTER_INACTIVE_DAYS }}
days. In order to manage maintenance burden, it will be automatically closed
in ${{ env.CLOSE_AFTER_INACTIVE_DAYS }} days.
close-issue-message: >
This Issue has been closed due to there being no activity for more
than ${{ env.STALE_AFTER_INACTIVE_DAYS }} days.
close-pr-message: >
This Pull Request has been closed due to there being no activity for more
than ${{ env.STALE_AFTER_INACTIVE_DAYS }} days.

0 comments on commit 6a3df67

Please sign in to comment.