mirror of
https://github.com/jumpserver/jumpserver.git
synced 2025-09-11 12:19:41 +00:00
feat: 优化 Issue GitHub Actions,当研发团队成员评论后再移除 待处理 标签
This commit is contained in:
13
.github/workflows/issue-comment.yml
vendored
13
.github/workflows/issue-comment.yml
vendored
@@ -27,20 +27,19 @@ jobs:
|
|||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
|
|
||||||
- name: Get Repository Collaborators
|
- name: Get Project Developers
|
||||||
id: collaborators
|
|
||||||
uses: octokit/request-action@v2.x
|
uses: octokit/request-action@v2.x
|
||||||
|
id: developers
|
||||||
with:
|
with:
|
||||||
route: GET /repos/{owner}/{repo}/collaborators
|
route: GET /repos/${{ github.repository }}/collaborators
|
||||||
owner: ${{ github.repository_owner }}
|
|
||||||
repo: ${{ github.repository }}
|
|
||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|
||||||
- run: "echo Collaborators: '${{ steps.collaborators.outputs.data }}'"
|
|
||||||
|
- run: "echo Collaborators: '${{ steps.developers.outputs.data }}'"
|
||||||
|
|
||||||
- name: Add require replay label
|
- 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
|
uses: actions-cool/issues-helper@v2
|
||||||
with:
|
with:
|
||||||
actions: 'add-labels'
|
actions: 'add-labels'
|
||||||
|
Reference in New Issue
Block a user