mirror of
https://github.com/yunionio/cloudpods.git
synced 2026-05-07 22:24:32 +08:00
39 lines
1.3 KiB
YAML
39 lines
1.3 KiB
YAML
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 && (github.event.issue.state == 'open')
|
|
steps:
|
|
- name: Add require handle label
|
|
uses: actions-cool/issues-helper@v2
|
|
with:
|
|
actions: 'add-labels'
|
|
labels: 'state/awaiting processing'
|
|
|
|
- name: Remove require reply label
|
|
uses: actions-cool/issues-helper@v2
|
|
with:
|
|
actions: 'remove-labels'
|
|
labels: 'state/awaiting user feedback,stale'
|
|
|
|
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') && (!contains(github.event.comment.body, '/keep-state'))
|
|
steps:
|
|
- name: Add require replay label
|
|
uses: actions-cool/issues-helper@v2
|
|
with:
|
|
actions: 'add-labels'
|
|
labels: 'state/awaiting user feedback'
|
|
|
|
- name: Remove require handle label
|
|
uses: actions-cool/issues-helper@v2
|
|
with:
|
|
actions: 'remove-labels'
|
|
labels: 'state/awaiting processing,stale'
|