Refactor label management in issue-comment workflow

This commit is contained in:
老广
2026-06-11 13:55:40 +08:00
parent cf41532448
commit 7313987ce5

View File

@@ -50,16 +50,11 @@ jobs:
- run: "echo comment user: '${{ github.event.comment.user.login }}'"
- run: "echo contains? : '${{ contains(steps.member_names.outputs.data, github.event.comment.user.login) }}'"
- name: Add require replay label
- name: Update labels
if: contains(steps.member_names.outputs.data, github.event.comment.user.login)
uses: actions-cool/issues-helper@v2
with:
actions: 'add-labels'
labels: '⏳ Pending feedback'
- name: Remove require handle label
if: contains(steps.member_names.outputs.data, github.event.comment.user.login)
uses: actions-cool/issues-helper@v2
with:
actions: 'remove-labels'
labels: '🔔 Pending processing'
run: |
gh issue edit "${{ github.event.issue.number }}" \
--add-label "⏳ Pending feedback" \
--remove-label "🔔 Pending processing"
env:
GH_TOKEN: ${{ github.token }}