mirror of
https://hubproxy.babadafafafafa.cn/https://github.com/yunionio/cloudpods.git
synced 2026-09-20 08:03:53 +08:00
Migrate issue label/close workflows to native gh scripts with explicit permissions, and update README cloud/AI coverage plus typo fixes.
52 lines
1.7 KiB
YAML
52 lines
1.7 KiB
YAML
on:
|
|
issue_comment:
|
|
types: [created]
|
|
|
|
name: Add issues workflow labels
|
|
|
|
permissions:
|
|
issues: write
|
|
|
|
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
|
|
env:
|
|
GH_TOKEN: ${{ github.token }}
|
|
run: |
|
|
gh issue edit "${{ github.event.issue.number }}" \
|
|
--repo "${{ github.repository }}" \
|
|
--add-label "state/awaiting processing"
|
|
|
|
- name: Remove require reply label
|
|
env:
|
|
GH_TOKEN: ${{ github.token }}
|
|
run: |
|
|
gh issue edit "${{ github.event.issue.number }}" \
|
|
--repo "${{ github.repository }}" \
|
|
--remove-label "state/awaiting user feedback" \
|
|
--remove-label "stale" || true
|
|
|
|
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 reply label
|
|
env:
|
|
GH_TOKEN: ${{ github.token }}
|
|
run: |
|
|
gh issue edit "${{ github.event.issue.number }}" \
|
|
--repo "${{ github.repository }}" \
|
|
--add-label "state/awaiting user feedback"
|
|
|
|
- name: Remove require handle label
|
|
env:
|
|
GH_TOKEN: ${{ github.token }}
|
|
run: |
|
|
gh issue edit "${{ github.event.issue.number }}" \
|
|
--repo "${{ github.repository }}" \
|
|
--remove-label "state/awaiting processing" \
|
|
--remove-label "stale" || true
|