chore: 添加判断 pull request

pull/7318/head
ibuler 2021-12-03 15:19:25 +08:00 committed by 老广
parent dbe628a8db
commit 8a31fbe35e
2 changed files with 2 additions and 1 deletions

View File

@ -5,7 +5,7 @@ on:
jobs:
add-label-if-is-author:
runs-on: ubuntu-latest
if: ${{ github.event.comment.pull_request.user.id == github.event.comment.user.id }}
if: ${{ github.event.comment.pull_request.user.id == github.event.comment.user.id }} && ${{ !github.event.comment.pull_request.pull_request }}
steps:
- name: Add require handle label
uses: actions-cool/issues-helper@v2

View File

@ -10,6 +10,7 @@ jobs:
steps:
- name: Add labels
uses: actions-cool/issues-helper@v2
if: ${{ !github.event.comment.pull_request.pull_request }}
with:
actions: 'add-labels'
labels: '状态:待处理'