misc: Implement stale action

This commit is contained in:
Joe Mooring 2025-08-16 13:39:00 -07:00 committed by GitHub
parent 167ea97133
commit 84a897f5fb
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 33 additions and 22 deletions

22
.github/stale.yml vendored
View File

@ -1,22 +0,0 @@
# Number of days of inactivity before an issue becomes stale
daysUntilStale: 120
# Number of days of inactivity before a stale issue is closed
daysUntilClose: 30
# Issues with these labels will never be considered stale
exemptLabels:
- Keep
- Security
- UndocumentedFeature
# Label to use when marking an issue as stale
staleLabel: Stale
# Comment to post when marking an issue as stale. Set to `false` to disable
markComment: >
This issue has been automatically marked as stale because it has not had
recent activity. The resources of the Hugo team are limited, and so we are asking for your help.
If you still think this is important, please tell us why.
This issue will automatically be closed in the near future if no further activity occurs. Thank you for all your contributions.
# Comment to post when closing a stale issue. Set to `false` to disable
closeComment: false

33
.github/workflows/stale.yml vendored Normal file
View File

@ -0,0 +1,33 @@
name: Close stale issues and pull requests
on:
workflow_dispatch:
schedule:
- cron: "30 1 * * *"
permissions:
contents: read
jobs:
stale:
permissions:
contents: read
issues: write
pull-requests: write
runs-on: ubuntu-latest
steps:
- uses: actions/stale@v9
with:
debug-only: true # TODO remove once tested
days-before-stale: 90 # default is 60
days-before-close: 14 # default is 7
exempt-all-assignees: true
exempt-draft-pr: true
exempt-issue-labels: Keep, InProgress, NeedsTriage
exempt-pr-labels: Keep
operations-per-run: 100
stale-issue-message: >
This issue has been marked as stale because there hasn't been any
recent activity. It will be closed soon if there are no further
updates.
stale-pr-message: >
This pull request has been marked as stale because there hasn't
been any recent activity. It will be closed soon if there are no
further updates.