From 673112a2c79c29f3ef5feac66f10458a9796e6d3 Mon Sep 17 00:00:00 2001 From: Scott Suarez Date: Mon, 9 Dec 2024 11:39:06 -0800 Subject: [PATCH] Don't request reviews on closed pull_requests (#12524) Co-authored-by: Stephen Lewis (Burrows) --- .github/workflows/request-reviewer.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/request-reviewer.yml b/.github/workflows/request-reviewer.yml index 03dbbb2b9afa..4b913b5c3911 100644 --- a/.github/workflows/request-reviewer.yml +++ b/.github/workflows/request-reviewer.yml @@ -15,7 +15,7 @@ on: jobs: request-review: - if: (github.event.action == 'created' && github.event.issue.draft == false && github.event.comment.user.login == github.event.issue.user.login) || (github.event.action != 'created' && github.event.pull_request.draft == false) + if: (github.event.action == 'created' && github.event.issue.state == 'open' && github.event.issue.draft == false && github.event.comment.user.login == github.event.issue.user.login) || (github.event.action != 'created' && github.event.pull_request.state == 'open' && github.event.pull_request.draft == false ) runs-on: ubuntu-latest permissions: pull-requests: write