From e3a63ff142c621641eb17f21ac44b3b29c1b3ad4 Mon Sep 17 00:00:00 2001 From: monkeyDluffy6017 Date: Mon, 4 Sep 2023 20:25:42 +0800 Subject: [PATCH] ci: update --- .github/workflows/update-pr-labels.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/update-pr-labels.yml b/.github/workflows/update-pr-labels.yml index e5e00c1f8a6a..3fec168f5b53 100644 --- a/.github/workflows/update-pr-labels.yml +++ b/.github/workflows/update-pr-labels.yml @@ -15,7 +15,7 @@ jobs: steps: - name: update label when user responds uses: actions/github-script@v6 - if: github.event.issue.labels && !contains(github.event.issue.labels.*.name, 'user responded') + 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({