-
Notifications
You must be signed in to change notification settings - Fork 276
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
4633c61
commit 6a3df67
Showing
1 changed file
with
44 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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. |