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 e3a63ff commit d5a545a
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions .github/workflows/update-pr-labels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,11 @@ on:

jobs:
issue_comment:
if: github.event.issue && github.event.issue.pull_request # execute for PR comments
if: github.event.issue && github.event.issue.pull_request && github.event.comment.user.login == github.event.issue.user.login && github.event.issue.labels && !contains(github.event.issue.labels.*.name, 'user responded')
runs-on: ubuntu-latest
steps:
- name: update label when user responds
uses: actions/github-script@v6
if: github.event.comment.user.login == github.event.issue.user.login && github.event.issue.labels && !contains(github.event.issue.labels.*.name, 'user responded')
with:
script: |
github.rest.issues.addLabels({
Expand All @@ -26,12 +25,11 @@ jobs:
})
pull_request_review_comment:
if: github.event.pull_request
if: github.event.pull_request && 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')
runs-on: ubuntu-latest
steps:
- name: update label when user responds
uses: actions/github-script@v6
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 d5a545a

Please sign in to comment.