2021-12-06 18:13:51 +08:00
|
|
|
on:
|
|
|
|
issue_comment:
|
|
|
|
types: [created]
|
|
|
|
|
|
|
|
name: Add issues workflow labels
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
add-label-if-is-author:
|
|
|
|
runs-on: ubuntu-latest
|
2021-12-09 15:20:53 +08:00
|
|
|
if: ${{ (github.event.issue.user.id == github.event.comment.user.id) && (!github.event.issue.pull_request) }}
|
2021-12-06 18:13:51 +08:00
|
|
|
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'
|
2021-12-08 10:27:08 +08:00
|
|
|
labels: '状态:待反馈'
|
|
|
|
|
|
|
|
add-label-if-not-author:
|
|
|
|
runs-on: ubuntu-latest
|
2021-12-09 15:20:53 +08:00
|
|
|
if: ${{ (github.event.issue.user.id != github.event.comment.user.id) && (!github.event.issue.pull_request) && (github.event.issue.state == 'open') }}
|
2021-12-08 10:27:08 +08:00
|
|
|
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'
|
2021-12-09 12:51:52 +08:00
|
|
|
labels: '状态:待处理'
|