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

pull/10856/head
Bai 2023-06-29 11:38:11 +08:00 committed by Bryan
parent d293a03649
commit 877a053717
1 changed files with 6 additions and 7 deletions

View File

@ -27,20 +27,19 @@ jobs:
- name: Checkout repository
uses: actions/checkout@v2
- name: Get Repository Collaborators
id: collaborators
- name: Get Project Developers
uses: octokit/request-action@v2.x
id: developers
with:
route: GET /repos/{owner}/{repo}/collaborators
owner: ${{ github.repository_owner }}
repo: ${{ github.repository }}
route: GET /repos/${{ github.repository }}/collaborators
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- run: "echo Collaborators: '${{ steps.collaborators.outputs.data }}'"
- run: "echo Collaborators: '${{ steps.developers.outputs.data }}'"
- name: Add require replay label
if: contains(steps.collaborators.outputs.data, github.event.comment.user.id)
if: contains(steps.developers.outputs.data, github.event.comment.user.id)
uses: actions-cool/issues-helper@v2
with:
actions: 'add-labels'