From 4b4303556a793f9467fbfa77d3f894b9a6a4b477 Mon Sep 17 00:00:00 2001 From: Vincent Koc Date: Wed, 6 May 2026 00:30:20 -0700 Subject: [PATCH] chore(ci): add stale issue automation --- .github/workflows/stale.yml | 86 +++++++++++++++++++++++++++++++++++++ 1 file changed, 86 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 0000000..0349eec --- /dev/null +++ b/.github/workflows/stale.yml @@ -0,0 +1,86 @@ +name: Stale + +on: + schedule: + - cron: "25 4 * * *" + workflow_dispatch: + +permissions: {} + +jobs: + stale: + permissions: + issues: write + pull-requests: write + runs-on: ubuntu-latest + steps: + - name: Mark stale unassigned issues and pull requests + uses: actions/stale@v10 + with: + days-before-issue-stale: 14 + days-before-issue-close: 7 + days-before-pr-stale: 14 + days-before-pr-close: 7 + stale-issue-label: stale + stale-pr-label: stale + exempt-issue-labels: enhancement,maintainer,pinned,security,no-stale + exempt-pr-labels: maintainer,no-stale + operations-per-run: 1000 + ascending: true + exempt-all-assignees: true + remove-stale-when-updated: true + stale-issue-message: | + This issue has been automatically marked as stale due to inactivity. + Please add updated discrawl details or it will be closed. + stale-pr-message: | + This pull request has been automatically marked as stale due to inactivity. + Please update it or it will be closed. + close-issue-message: | + Closing due to inactivity. + If this still affects discrawl, open a new issue with current reproduction details. + close-issue-reason: not_planned + close-pr-message: | + Closing due to inactivity. + If this PR should be revived, reopen it with current context and validation. + + - name: Mark stale assigned issues + uses: actions/stale@v10 + with: + days-before-issue-stale: 30 + days-before-issue-close: 10 + days-before-pr-stale: -1 + days-before-pr-close: -1 + stale-issue-label: stale + exempt-issue-labels: enhancement,maintainer,pinned,security,no-stale + operations-per-run: 1000 + ascending: true + include-only-assigned: true + remove-stale-when-updated: true + stale-issue-message: | + This assigned issue has been automatically marked as stale after 30 days of inactivity. + Please add an update or it will be closed. + close-issue-message: | + Closing due to inactivity. + If this still affects discrawl, reopen or file a new issue with current evidence. + close-issue-reason: not_planned + + - name: Mark stale assigned pull requests + uses: actions/stale@v10 + with: + days-before-issue-stale: -1 + days-before-issue-close: -1 + days-before-pr-stale: 27 + days-before-pr-close: 7 + stale-pr-label: stale + exempt-pr-labels: maintainer,no-stale + operations-per-run: 1000 + ascending: true + include-only-assigned: true + ignore-pr-updates: true + remove-stale-when-updated: true + stale-pr-message: | + This assigned pull request has been automatically marked as stale after being open for 27 days. + Please add an update or it will be closed. + close-pr-message: | + Closing due to inactivity. + If this PR should be revived, reopen it with current context and validation.