From 1358a02c494ec912c6d679988bea49b9691da2a7 Mon Sep 17 00:00:00 2001 From: monkeyDluffy6017 Date: Mon, 4 Sep 2023 21:53:15 +0800 Subject: [PATCH] ci: update --- .github/workflows/update-labels.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/update-labels.yml b/.github/workflows/update-labels.yml index 85475007d35c..ebde6c4e6f99 100644 --- a/.github/workflows/update-labels.yml +++ b/.github/workflows/update-labels.yml @@ -32,7 +32,7 @@ jobs: }) pr_commented: - 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') + if: github.event.issue && github.event.issue.pull_request && github.event.comment.user.login == github.event.issue.user.login && (contains(github.event.issue.labels.*.name, 'wait for update') || contains(github.event.issue.labels.*.name, 'discuss')) && !contains(github.event.issue.labels.*.name, 'user responded') runs-on: ubuntu-latest steps: - name: update label when user responds @@ -47,7 +47,7 @@ jobs: }) pr_review_commented: - 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') + if: github.event.pull_request && github.event.comment.user.login == github.event.pull_request.user.login && (contains(github.event.pull_request.labels.*.name, 'wait for update') && contains(github.event.pull_request.labels.*.name, 'discuss')) && !contains(github.event.pull_request.labels.*.name, 'user responded') runs-on: ubuntu-latest steps: - name: update label when user responds