mirror of
https://github.com/jumpserver/jumpserver.git
synced 2025-07-19 17:26:52 +00:00
feat: 优化 Issue GitHub Actions,当研发团队成员评论后再移除 待处理 标签
This commit is contained in:
parent
fbcb0da349
commit
57fccc9baf
15
.github/workflows/issue-comment.yml
vendored
15
.github/workflows/issue-comment.yml
vendored
@ -21,7 +21,7 @@ jobs:
|
|||||||
actions: 'remove-labels'
|
actions: 'remove-labels'
|
||||||
labels: '状态:待反馈'
|
labels: '状态:待反馈'
|
||||||
|
|
||||||
add-label-if-is-rd-members:
|
add-label-if-is-developers:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
@ -35,18 +35,25 @@ jobs:
|
|||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|
||||||
|
- name: Process developers data
|
||||||
|
# 将 developers 中的数据转化为 login 字段的列表并输出
|
||||||
|
id: developer_names
|
||||||
|
run: echo "::set-output name=data::$(echo '${{ steps.developers.outputs.data }}' | jq -r '.[] | .login')"
|
||||||
|
|
||||||
- run: "echo Collaborators: '${{ steps.developers.outputs.data }}'"
|
- run: "echo developers: '${{ steps.developer.outputs.data }}' '${{github.event.comment.user.id}}'"
|
||||||
|
- run: "echo developer names: '${{ steps.developer_names.outputs.data }}'"
|
||||||
|
- run: "echo comment user: '${{ github.event.comment.user.id }}'"
|
||||||
|
- run: "echo contains? : '${{ contains(steps.developer_names.outputs.data, github.event.comment.user.id) }}'"
|
||||||
|
|
||||||
- name: Add require replay label
|
- name: Add require replay label
|
||||||
if: contains(steps.developers.outputs.data, github.event.comment.user.id)
|
if: contains(steps.developer_names.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'
|
||||||
labels: '状态:待反馈'
|
labels: '状态:待反馈'
|
||||||
|
|
||||||
- name: Remove require handle label
|
- name: Remove require handle label
|
||||||
if: contains(steps.collaborators.outputs.data, github.event.comment.user.id)
|
if: contains(steps.developer_names.outputs.data, github.event.comment.user.id)
|
||||||
uses: actions-cool/issues-helper@v2
|
uses: actions-cool/issues-helper@v2
|
||||||
with:
|
with:
|
||||||
actions: 'remove-labels'
|
actions: 'remove-labels'
|
||||||
|
Loading…
Reference in New Issue
Block a user