From f91b104ae4097ae9bb7a3ea5d908b0742f68e3f1 Mon Sep 17 00:00:00 2001 From: dqzboy Date: Thu, 25 Jul 2024 15:23:57 +0800 Subject: [PATCH] chore: Close stale issues --- .../workflows/housekeeping-stale-issues.yaml | 21 +++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 .github/workflows/housekeeping-stale-issues.yaml diff --git a/.github/workflows/housekeeping-stale-issues.yaml b/.github/workflows/housekeeping-stale-issues.yaml new file mode 100644 index 0000000..72f6cb5 --- /dev/null +++ b/.github/workflows/housekeeping-stale-issues.yaml @@ -0,0 +1,21 @@ +name: Housekeeping - Close stale issues +on: + schedule: + - cron: '0 9 * * *' + +jobs: + stale: + runs-on: ubuntu-latest + steps: + - uses: actions/stale@v9.0.0 + with: + stale-issue-message: 'This issue is being marked stale due to a period of inactivity. If this issue is still relevant, please comment or remove the stale label. Otherwise, this issue will close in 30 days.' + close-issue-message: 'This issue was closed because it has been stalled for 30 days with no activity. If this issue is still relevant, please re-open a new issue.' + days-before-issue-stale: 60 + days-before-issue-close: 30 + # Don't add stale label to PRs / issues with milestones "upcoming" attached. + exempt-milestones: "upcoming" + # Don't add stale label to PRs / issues with this label + exempt-issue-labels: 'never-stale, kind/requirement' + # Make it 1000 to clean up a bit then wen can lower it + operations-per-run: 1000 \ No newline at end of file