diff --git a/.github/workflows/issue-comment.yml b/.github/workflows/issue-comment.yml new file mode 100644 index 000000000..19bca0104 --- /dev/null +++ b/.github/workflows/issue-comment.yml @@ -0,0 +1,20 @@ +on: + issue_comment: + types: [created] + +jobs: + add-label-if-is-author: + runs-on: ubuntu-latest + if: ${{ github.event.comment.pull_request.user.id == github.event.comment.user.id }} + steps: + - name: Add require handle label + uses: actions-cool/issues-helper@v2 + with: + actions: 'add-labels' + labels: '状态:待处理' + + - name: Remove require reply label + uses: actions-cool/issues-helper@v2 + with: + actions: 'remove-labels' + labels: '状态:待反馈' diff --git a/.github/workflows/issue-open.yml b/.github/workflows/issue-open.yml new file mode 100644 index 000000000..5307275b8 --- /dev/null +++ b/.github/workflows/issue-open.yml @@ -0,0 +1,15 @@ +name: Issue Open Check + +on: + issues: + types: [opened] + +jobs: + issue-open-add-labels: + runs-on: ubuntu-latest + steps: + - name: Add labels + uses: actions-cool/issues-helper@v2 + with: + actions: 'add-labels' + labels: '状态:待处理' \ No newline at end of file