2022-01-26 17:17:28 +08:00
|
|
|
on:
|
|
|
|
issue_comment:
|
|
|
|
types: [created]
|
|
|
|
|
|
|
|
name: Add issues workflow labels
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
add-label-if-is-author:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
if: ${{ (github.event.issue.user.id == github.event.comment.user.id) && (!github.event.issue.pull_request) }}
|
|
|
|
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'
|
2023-02-28 11:34:57 +08:00
|
|
|
labels: '状态:待用户反馈'
|
2022-01-26 17:17:28 +08:00
|
|
|
|
|
|
|
add-label-if-not-author:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
if: ${{ (github.event.issue.user.id != github.event.comment.user.id) && (!github.event.issue.pull_request) && (github.event.issue.state == 'open') }}
|
|
|
|
steps:
|
|
|
|
- name: Add require replay label
|
|
|
|
uses: actions-cool/issues-helper@v2
|
|
|
|
with:
|
|
|
|
actions: 'add-labels'
|
2023-02-28 11:34:57 +08:00
|
|
|
labels: '状态:待用户反馈'
|
2022-01-26 17:17:28 +08:00
|
|
|
|
|
|
|
- name: Remove require handle label
|
|
|
|
uses: actions-cool/issues-helper@v2
|
|
|
|
with:
|
|
|
|
actions: 'remove-labels'
|
|
|
|
labels: '状态:待处理'
|