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], + }); + }