Skip to content

Commit 6e45ff1

Browse files
authored
chore: run issue_comment github action only for issue comments (#4061)
1 parent 68dda60 commit 6e45ff1

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
@@ -21,7 +21,7 @@ jobs:
2121

2222
adjust-labels:
2323
runs-on: ubuntu-latest
24-
if: ${{ github.event.issue.state == 'open' }}
24+
if: ${{ github.event.issue.state == 'open' && !github.event.issue.pull_request }}
2525
permissions:
2626
issues: write
2727
env:
@@ -30,7 +30,7 @@ jobs:
3030
REPOSITORY_NAME: ${{ github.event.repository.full_name }}
3131
steps:
3232
- name: remove pending-community-response when new comment received
33-
if: ${{ !contains(fromJSON('["MEMBER", "OWNER"]'), github.event.comment.author_association) && !github.event.issue.pull_request }}
33+
if: ${{ !contains(fromJSON('["MEMBER", "OWNER"]'), github.event.comment.author_association) }}
3434
shell: bash
3535
run: |
3636
gh issue edit $ISSUE_NUMBER --repo $REPOSITORY_NAME --remove-label "pending-community-response"

0 commit comments

Comments
 (0)