Skip to content

Commit

Permalink
ci: update
Browse files Browse the repository at this point in the history
  • Loading branch information
monkeyDluffy6017 committed Sep 4, 2023
1 parent 95fdfd8 commit 6402623
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/update-pr-labels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ permissions:
on:
issue_comment:
types: [created]
pull_request_review_thread:
pull_request_review_comment:
types: [created]

jobs:
issue_comment:
Expand All @@ -24,13 +25,13 @@ jobs:
labels: ["user responded"]
})
pull_request_review_thread:
pull_request_review_comment:
if: github.event.pull_request
runs-on: ubuntu-latest
steps:
- name: update label when user responds
uses: actions/github-script@v6
if: github.event.pull_request.labels && !contains(github.event.pull_request.labels.*.name, 'user responded')
if: github.event.comment.user.login == github.event.pull_request.user.login && github.event.pull_request.labels && !contains(github.event.pull_request.labels.*.name, 'user responded')
with:
script: |
github.rest.issues.addLabels({
Expand Down

0 comments on commit 6402623

Please sign in to comment.