diff --git a/.github/actions/randomReviewer.js b/.github/actions/randomReviewer.js index dd7776b30..fb07e3a82 100644 --- a/.github/actions/randomReviewer.js +++ b/.github/actions/randomReviewer.js @@ -43,13 +43,13 @@ const setReviewers = async (reviewers) => { }; async function main() { + console.log('Setting for repo:', owner, repo, ', PR:', prNumber); + const { requested_reviewers, user: { login: prUser }, } = await getPullRequest(); - console.log('Setting for repo:', owner, repo, ', PR:', prNumber); - const existingReviewers = requested_reviewers.map((reviewer) => reviewer.login); if (existingReviewers > 0) {