feat: 优化 Issue GitHub Actions,当研发团队成员评论后再移除 待处理 标签

pull/10860/head
Bai 2023-06-29 14:27:13 +08:00 committed by Bryan
parent 57fccc9baf
commit e3cf6cc476
1 changed files with 5 additions and 5 deletions

View File

@ -40,20 +40,20 @@ jobs:
id: developer_names id: developer_names
run: echo "::set-output name=data::$(echo '${{ steps.developers.outputs.data }}' | jq -r '.[] | .login')" run: echo "::set-output name=data::$(echo '${{ steps.developers.outputs.data }}' | jq -r '.[] | .login')"
- run: "echo developers: '${{ steps.developer.outputs.data }}' '${{github.event.comment.user.id}}'" - run: "echo developers: '${{ steps.developers.outputs.data }}'"
- run: "echo developer names: '${{ steps.developer_names.outputs.data }}'" - run: "echo developer names: '${{ steps.developer_names.outputs.data }}'"
- run: "echo comment user: '${{ github.event.comment.user.id }}'" - run: "echo comment user: '${{ github.event.comment.user.login }}'"
- run: "echo contains? : '${{ contains(steps.developer_names.outputs.data, github.event.comment.user.id) }}'" - run: "echo contains? : '${{ contains(steps.developer_names.outputs.data, github.event.comment.user.login) }}'"
- name: Add require replay label - name: Add require replay label
if: contains(steps.developer_names.outputs.data, github.event.comment.user.id) if: contains(steps.developer_names.outputs.data, github.event.comment.user.login)
uses: actions-cool/issues-helper@v2 uses: actions-cool/issues-helper@v2
with: with:
actions: 'add-labels' actions: 'add-labels'
labels: '状态:待反馈' labels: '状态:待反馈'
- name: Remove require handle label - name: Remove require handle label
if: contains(steps.developer_names.outputs.data, github.event.comment.user.id) if: contains(steps.developer_names.outputs.data, github.event.comment.user.login)
uses: actions-cool/issues-helper@v2 uses: actions-cool/issues-helper@v2
with: with:
actions: 'remove-labels' actions: 'remove-labels'