Skip to content

Commit cfc26b3

Browse files
Merge pull request dataease#1463 from ibuler/patch-2
Update issue-comment.yml
2 parents c8e0714 + 3fca79b commit cfc26b3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/issue-comment.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ name: Add issues workflow labels
77
jobs:
88
add-label-if-is-author:
99
runs-on: ubuntu-latest
10-
if: ${{ github.event.comment.pull_request.user.id == github.event.comment.user.id }} && ${{ !github.event.comment.pull_request.pull_request }}
10+
if: (github.event.issue.user.id == github.event.comment.user.id) && !github.event.issue.pull_request && (github.event.issue.state == 'open')
1111
steps:
1212
- name: Add require handle label
1313
uses: actions-cool/issues-helper@v2
@@ -23,7 +23,7 @@ jobs:
2323

2424
add-label-if-not-author:
2525
runs-on: ubuntu-latest
26-
if: ${{ github.event.comment.pull_request.user.id != github.event.comment.user.id }} && ${{ !github.event.comment.pull_request.pull_request }}
26+
if: (github.event.issue.user.id != github.event.comment.user.id) && !github.event.issue.pull_request && (github.event.issue.state == 'open')
2727
steps:
2828
- name: Add require replay label
2929
uses: actions-cool/issues-helper@v2

0 commit comments

Comments
 (0)