Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add stalebot GitHub Action #942

Merged
merged 1 commit into from
Oct 4, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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.