From e45b893662936865396ac468c446d0d6a9c0f4f6 Mon Sep 17 00:00:00 2001 From: ibuler Date: Thu, 2 Dec 2021 17:49:22 +0800 Subject: [PATCH] =?UTF-8?q?chore:=20=E6=B7=BB=E5=8A=A0=20workflow=20?= =?UTF-8?q?=E6=A3=80=E6=9F=A5issue?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/issue-check-inactive.yml | 16 +++++++++++++ .github/workflows/issue-close-require.yml | 27 ++++++++++++++++++++++ 2 files changed, 43 insertions(+) create mode 100644 .github/workflows/issue-check-inactive.yml create mode 100644 .github/workflows/issue-close-require.yml diff --git a/.github/workflows/issue-check-inactive.yml b/.github/workflows/issue-check-inactive.yml new file mode 100644 index 000000000..e4ee1732d --- /dev/null +++ b/.github/workflows/issue-check-inactive.yml @@ -0,0 +1,16 @@ +name: Issue Check Inactive + +on: + schedule: + - cron: "0 0 */15 * *" + +jobs: + issue-check-inactive: + runs-on: ubuntu-latest + steps: + - name: check-inactive + uses: actions-cool/issues-helper@v2 + with: + actions: 'check-inactive' + inactive-label: 'Inactive' + inactive-day: 30 \ No newline at end of file diff --git a/.github/workflows/issue-close-require.yml b/.github/workflows/issue-close-require.yml new file mode 100644 index 000000000..3bf157681 --- /dev/null +++ b/.github/workflows/issue-close-require.yml @@ -0,0 +1,27 @@ +name: Issue Close Require + +on: + schedule: + - cron: "0 0 * * *" + +jobs: + issue-close-require: + runs-on: ubuntu-latest + steps: + - name: need reproduce + uses: actions-cool/issues-helper@v2 + with: + actions: 'close-issues' + labels: '状态:待反馈' + inactive-day: 7 + body: | + 由于该 issue 被标记为 状态:待反馈,却 7 天未收到回应。现关闭 issue,若有任何问题,可评论回复。 + + - name: needs more info + uses: actions-cool/issues-helper@v2 + with: + actions: 'close-issues' + labels: 'needs-more-info' + inactive-day: 7 + body: | + Since the issue was labeled with `needs-more-info`, but no response in 7 days. This issue will be closed. If you have any questions, you can comment and reply.