Setup stale issue/pr cleanup workflow (#1546)

This commit is contained in:
Tom Rochette
2026-06-06 10:58:06 +03:00
committed by GitHub
parent 1ad3d553c7
commit d4ef1fd8c0
+42
View File
@@ -0,0 +1,42 @@
name: stale
on:
schedule:
- cron: "30 1 * * *"
workflow_dispatch:
permissions:
issues: write
pull-requests: write
jobs:
stale:
runs-on: ubuntu-latest
steps:
- uses: actions/stale@v10
with:
days-before-stale: 60
days-before-close: 7
stale-issue-label: stale
stale-pr-label: stale
stale-issue-message: >
This issue has been automatically marked as stale because it has not had
any activity in the last 60 days. It will be closed in 7 days if no
further activity occurs.
close-issue-message: >
This issue has been automatically closed because it has been stale for
7 days with no activity. If this is still relevant, please comment or
reopen the issue.
stale-pr-message: >
This pull request has been automatically marked as stale because it has
not had any activity in the last 60 days. It will be closed in 7 days
if no further activity occurs.
close-pr-message: >
This pull request has been automatically closed because it has been
stale for 7 days with no activity. If this is still relevant, please
comment or reopen the pull request.
exempt-issue-labels: pinned,security,help wanted
exempt-pr-labels: pinned,security,help wanted
remove-stale-when-updated: true
labels-to-add-when-unstale: ""
operations-per-run: 100