From 3875a8a8b0d0fe5cbe37240d2ee2146a8946175c Mon Sep 17 00:00:00 2001 From: cuisongliu Date: Thu, 9 Mar 2023 16:00:58 +0800 Subject: [PATCH] ci(main): add github.event.comment.author_association (#2772) Signed-off-by: cuisongliu --- .github/workflows/cherry-pick.yml | 2 +- .github/workflows/rebase.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/cherry-pick.yml b/.github/workflows/cherry-pick.yml index c41f86479..97ad0e6f9 100644 --- a/.github/workflows/cherry-pick.yml +++ b/.github/workflows/cherry-pick.yml @@ -5,7 +5,7 @@ on: jobs: cherry-pick: name: Cherry Pick - if: github.event.issue.pull_request != '' && contains(github.event.comment.body, '/cherry-pick') + if: github.event.issue.pull_request != '' && contains(github.event.comment.body, '/cherry-pick') && github.event.comment.author_association == 'MEMBER' runs-on: ubuntu-latest steps: - name: Checkout the latest code diff --git a/.github/workflows/rebase.yml b/.github/workflows/rebase.yml index dfc8fa32f..e8db5f62c 100644 --- a/.github/workflows/rebase.yml +++ b/.github/workflows/rebase.yml @@ -7,7 +7,7 @@ jobs: name: Rebase runs-on: ubuntu-latest if: >- - github.event.issue.pull_request != '' && + github.event.issue.pull_request != '' && github.event.comment.author_association == 'MEMBER' && ( contains(github.event.comment.body, '/rebase') || contains(github.event.comment.body, '/autosquash')