From 87322358cc994b5d8a6a82d589e4ed74b30afbf5 Mon Sep 17 00:00:00 2001 From: BugKing Date: Wed, 8 Dec 2021 10:27:08 +0800 Subject: [PATCH] =?UTF-8?q?build:=20=E6=9B=B4=E6=96=B0issues=E5=A4=84?= =?UTF-8?q?=E7=90=86action?= 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-comment.yml | 18 +++++++++++++++++- .github/workflows/issue-inactive-alert.yml | 17 ----------------- .github/workflows/issue-recent-alert.yml | 2 +- .github/workflows/issue-untimely-alert.yml | 17 +++++++++++++++++ 5 files changed, 35 insertions(+), 35 deletions(-) delete mode 100644 .github/workflows/issue-check-inactive.yml delete mode 100644 .github/workflows/issue-inactive-alert.yml create mode 100644 .github/workflows/issue-untimely-alert.yml diff --git a/.github/workflows/issue-check-inactive.yml b/.github/workflows/issue-check-inactive.yml deleted file mode 100644 index e4ee1732d4..0000000000 --- a/.github/workflows/issue-check-inactive.yml +++ /dev/null @@ -1,16 +0,0 @@ -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-comment.yml b/.github/workflows/issue-comment.yml index c59b3fe906..beae027614 100644 --- a/.github/workflows/issue-comment.yml +++ b/.github/workflows/issue-comment.yml @@ -19,4 +19,20 @@ jobs: uses: actions-cool/issues-helper@v2 with: actions: 'remove-labels' - labels: '状态:待反馈' \ No newline at end of file + labels: '状态:待反馈' + + add-label-if-not-author: + runs-on: ubuntu-latest + if: ${{ github.event.comment.pull_request.user.id != github.event.comment.user.id }} && ${{ !github.event.comment.pull_request.pull_request }} + steps: + - name: Add require replay label + uses: actions-cool/issues-helper@v2 + with: + actions: 'add-labels' + labels: '状态:待反馈' + + - name: Remove require handle label + uses: actions-cool/issues-helper@v2 + with: + actions: 'remove-labels' + labels: '状态:待处理' \ No newline at end of file diff --git a/.github/workflows/issue-inactive-alert.yml b/.github/workflows/issue-inactive-alert.yml deleted file mode 100644 index e5954b90cd..0000000000 --- a/.github/workflows/issue-inactive-alert.yml +++ /dev/null @@ -1,17 +0,0 @@ -on: - schedule: - - cron: "0 9 * * 1" - -name: Check inactive issues - -jobs: - check-inactive-issues: - runs-on: ubuntu-latest - steps: - - name: Check inactive issues and send msg - uses: jumpserver/action-issues-alert@master - with: - hook: ${{ secrets.WECHAT_GROUP_WEB_HOOK }} - type: inactive - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file diff --git a/.github/workflows/issue-recent-alert.yml b/.github/workflows/issue-recent-alert.yml index 91a8edee00..0255783f5e 100644 --- a/.github/workflows/issue-recent-alert.yml +++ b/.github/workflows/issue-recent-alert.yml @@ -1,6 +1,6 @@ on: schedule: - - cron: "0 9 * * *" + - cron: "0 1 * * *" name: Check recent handle issues diff --git a/.github/workflows/issue-untimely-alert.yml b/.github/workflows/issue-untimely-alert.yml new file mode 100644 index 0000000000..2d3d7d5e1e --- /dev/null +++ b/.github/workflows/issue-untimely-alert.yml @@ -0,0 +1,17 @@ +on: + schedule: + - cron: "0 9 * * 1-5" + +name: Check untimely handle issues + +jobs: + check-untimely-handle-issues: + runs-on: ubuntu-latest + steps: + - name: Check untimely issues and send msg + uses: jumpserver/action-issues-alert@master + with: + hook: ${{ secrets.WECHAT_GROUP_WEB_HOOK }} + type: untimely + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file