From b1b0ad55d3678ac4075f08d813b5404311fce662 Mon Sep 17 00:00:00 2001 From: Josh Black Date: Mon, 13 May 2024 12:07:59 -0500 Subject: [PATCH] Update assign_release_conductor.yml --- .github/workflows/assign_release_conductor.yml | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/.github/workflows/assign_release_conductor.yml b/.github/workflows/assign_release_conductor.yml index e976de684e2..8cbc24e21c0 100644 --- a/.github/workflows/assign_release_conductor.yml +++ b/.github/workflows/assign_release_conductor.yml @@ -66,15 +66,6 @@ jobs: return user.login === PREV_RELEASE_CONDUCTOR; }); - if (hasPreviousReviewer) { - await github.rest.pulls.removeRequestedReviewers({ - owner: context.repo.owner, - repo: context.repo.repo, - pull_number: PR_NUMBER, - reviewers: [PREV_RELEASE_CONDUCTOR], - }); - } - // Add the current release conductor as an assignee if they are not currently assigned const hasAssignee = pull.assignees.find((assignee) => { return assignee.login === RELEASE_CONDUCTOR; @@ -101,3 +92,12 @@ jobs: reviewers: [RELEASE_CONDUCTOR] }) } + + if (hasPreviousReviewer) { + await github.rest.pulls.removeRequestedReviewers({ + owner: context.repo.owner, + repo: context.repo.repo, + pull_number: PR_NUMBER, + reviewers: [PREV_RELEASE_CONDUCTOR], + }); + }