From 881cc198f0e8fae6bb1d898580ebf5b11d77fafb Mon Sep 17 00:00:00 2001 From: FuzzyGrim Date: Sat, 23 May 2026 15:53:57 +0200 Subject: [PATCH] add stale issue and pr automation --- .github/workflows/stale.yml | 45 +++++++++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100644 .github/workflows/stale.yml diff --git a/.github/workflows/stale.yml b/.github/workflows/stale.yml new file mode 100644 index 00000000..f3965924 --- /dev/null +++ b/.github/workflows/stale.yml @@ -0,0 +1,45 @@ +name: Stale + +on: + schedule: + - cron: "30 2 * * *" + workflow_dispatch: + +permissions: + actions: write + issues: write + pull-requests: write + +jobs: + stale: + runs-on: ubuntu-latest + steps: + - name: Mark and close stale issues and pull requests + uses: actions/stale@v10 + with: + days-before-issue-stale: 180 + days-before-issue-close: 180 + days-before-pr-stale: 60 + days-before-pr-close: 30 + + stale-issue-label: stale + stale-pr-label: stale + exempt-issue-labels: pinned,security,roadmap,blocked,never stale + exempt-pr-labels: pinned,security,blocked,never stale + exempt-draft-pr: true + + stale-issue-message: > + This issue has been automatically marked as stale because it has + not had recent activity. It will stay open for now; comment with + updated details if this is still relevant. + stale-pr-message: > + This pull request has been automatically marked as stale because it + has not had recent activity. It will be closed in 30 days if there + is no further activity. + close-pr-message: > + This pull request was closed because it remained inactive after + being marked stale. Feel free to reopen it or open a new pull + request if you want to continue the work. + + remove-stale-when-updated: true + operations-per-run: 30