From 90db402b6b2d2d6994e99601c7ae25844e04e0e4 Mon Sep 17 00:00:00 2001 From: Just Call Me Koko Date: Thu, 4 Sep 2025 09:50:09 -0400 Subject: [PATCH] Add stale issue workflow --- .github/workflows/close_stale.yml | 32 +++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 .github/workflows/close_stale.yml diff --git a/.github/workflows/close_stale.yml b/.github/workflows/close_stale.yml new file mode 100644 index 0000000..f31da87 --- /dev/null +++ b/.github/workflows/close_stale.yml @@ -0,0 +1,32 @@ +name: Close stale issues + +on: + schedule: + - cron: "0 3 * * *" # runs daily at 03:00 UTC + workflow_dispatch: {} + +permissions: + issues: write + pull-requests: write + +jobs: + stale: + runs-on: ubuntu-latest + steps: + - uses: actions/stale@v9 + with: + days-before-stale: 365 + days-before-close: 7 + stale-issue-message: > + This issue has been automatically marked as stale due to inactivity. + It will be closed in 7 days unless there is further activity. + close-issue-message: > + Closing due to prolonged inactivity. If this is still relevant, + please comment or open a new issue with updated details. + stale-issue-label: "stale" + exempt-issue-labels: "pinned,security,backlog,keep-open" + remove-stale-when-updated: true + operations-per-run: 200 + # Optional: also handle PRs + days-before-pr-stale: -1 + days-before-pr-close: -1