From 6a6d8513017b87b0bc9a9cc8466c36e503df6478 Mon Sep 17 00:00:00 2001 From: Pavel Mikula Date: Fri, 22 Dec 2023 18:50:38 +0100 Subject: [PATCH] GitHub workflow: Improve author_association to NONE only --- .github/workflows/RequestReview.yml | 2 +- .github/workflows/SubmitReview.yml | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/RequestReview.yml b/.github/workflows/RequestReview.yml index 89e919b4ef4..f4217e4e76a 100644 --- a/.github/workflows/RequestReview.yml +++ b/.github/workflows/RequestReview.yml @@ -10,7 +10,7 @@ jobs: runs-on: ubuntu-latest # PRs from forks don't have required token authorization if: github.event.pull_request.head.repo.full_name == github.repository - && (github.event.review.author_association == 'COLLABORATOR' || github.event.review.author_association == 'MEMBER') + && github.event.review.author_association != 'NONE' steps: - uses: sonarsource/gh-action-lt-backlog/MoveCardToReview@v1 with: diff --git a/.github/workflows/SubmitReview.yml b/.github/workflows/SubmitReview.yml index b7d56bd96e1..f61295e74ea 100644 --- a/.github/workflows/SubmitReview.yml +++ b/.github/workflows/SubmitReview.yml @@ -12,7 +12,7 @@ jobs: # PRs from forks don't have required token authorization if: | github.event.pull_request.head.repo.full_name == github.repository - && (github.event.review.author_association == 'COLLABORATOR' || github.event.review.author_association == 'MEMBER') + && github.event.review.author_association != 'NONE' && github.event.review.state == 'changes_requested' steps: - uses: sonarsource/gh-action-lt-backlog/MoveCardAfterReview@v1 @@ -25,7 +25,7 @@ jobs: runs-on: ubuntu-latest if: | github.event.pull_request.head.repo.full_name == github.repository - && (github.event.review.author_association == 'COLLABORATOR' || github.event.review.author_association == 'MEMBER') + && github.event.review.author_association != 'NONE' && github.event.review.state == 'approved' steps: - uses: sonarsource/gh-action-lt-backlog/MoveCardAfterReview@v1