From fa4d9e92594379746afd636995517f8b75d166cb Mon Sep 17 00:00:00 2001 From: ousttrue Date: Mon, 5 Dec 2022 17:49:01 +0900 Subject: [PATCH] =?UTF-8?q?`help=20wanted`=20=E3=83=A9=E3=83=99=E3=83=AB?= =?UTF-8?q?=E3=82=92=E6=99=82=E9=99=90=E3=82=AF=E3=83=AD=E3=83=BC=E3=82=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/close-expired-issues.yml | 32 ++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 .github/workflows/close-expired-issues.yml diff --git a/.github/workflows/close-expired-issues.yml b/.github/workflows/close-expired-issues.yml new file mode 100644 index 000000000..cdbc60a68 --- /dev/null +++ b/.github/workflows/close-expired-issues.yml @@ -0,0 +1,32 @@ +name: Expired Issues Closure + +on: + schedule: + - cron: 0 5 * * * + +jobs: + cycle-weekly-close: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + + - name: Close expired "stale" issues + uses: piroor/close-expired-issues-based-on-label@master + env: + LABEL: "stale" + EXCEPTION_LABELS: "needs-triage" + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + EXPIRE_DAYS: 14 + EXTEND_DAYS_BY_REOPENED: 7 + EXTEND_DAYS_BY_COMMENTED: 7 + + - name: mark "help wanted" issues as stale + uses: piroor/auto-mark-as-stale-issues@main + env: + LABEL: "stale" + EXCEPTION_LABELS: "needs-triage" + CANDIDATE_LABELS: "help wanted" + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + EXPIRE_DAYS: 21 + EXTEND_DAYS_BY_COMMENTED: 7 + COMMENT: This issue has been labeled as "stale" due to no response by the reporter within 1 month (and 7 days after last commented by someone). And it will be closed automatically 14 days later if not responded.