Browse Source

chore: 添加 issue 备注添加labels

pull/7318/head
ibuler 3 years ago committed by 老广
parent
commit
dbe628a8db
  1. 20
      .github/workflows/issue-comment.yml
  2. 15
      .github/workflows/issue-open.yml

20
.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: '状态:待反馈'

15
.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: '状态:待处理'
Loading…
Cancel
Save