From 65852b0673c87e1ebcc15a75e91c593024a2e78c Mon Sep 17 00:00:00 2001 From: Shigma Date: Thu, 19 Jan 2023 00:12:04 +0800 Subject: [PATCH] build: add stale workflow --- .github/workflows/stale.yml | 21 +++++++++++++++++++++ 1 file changed, 21 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..f4d1984 --- /dev/null +++ b/.github/workflows/stale.yml @@ -0,0 +1,21 @@ +name: Stale + +on: + schedule: + - cron: 30 7 * * * + +jobs: + stale: + runs-on: ubuntu-latest + steps: + - uses: actions/stale@v4 + with: + stale-issue-label: stale + stale-issue-message: | + This issue is stale because it has been open 30 days with no activity. + Remove stale label or comment or this will be closed in 5 days. + close-issue-message: | + This issue was closed because it has been stalled for 5 days with no activity. + days-before-issue-stale: 30 + days-before-issue-close: 5 + any-of-labels: needs repro