From 6d8a9c95cc47cca5d93599891f5e5ea384b280b4 Mon Sep 17 00:00:00 2001 From: Javier Bullrich Date: Tue, 31 Oct 2023 12:13:57 +0100 Subject: [PATCH] upgraded review-bot to 2.2.0 This version includes paritytech/review-bot#97 which can assign reviewers. It will be the final replacement for PRCR. It also moves the secrets to the environment master. --- .github/workflows/review-bot.yml | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/.github/workflows/review-bot.yml b/.github/workflows/review-bot.yml index 178193da3389..574348b29a0f 100644 --- a/.github/workflows/review-bot.yml +++ b/.github/workflows/review-bot.yml @@ -6,12 +6,10 @@ on: types: - completed -permissions: - contents: read - jobs: review-approvals: runs-on: ubuntu-latest + environment: master steps: - name: Extract content of artifact id: number @@ -25,9 +23,10 @@ jobs: app_id: ${{ secrets.REVIEW_APP_ID }} private_key: ${{ secrets.REVIEW_APP_KEY }} - name: "Evaluates PR reviews and assigns reviewers" - uses: paritytech/review-bot@v2.1.0 + uses: paritytech/review-bot@v2.2.0 with: - repo-token: ${{ secrets.GITHUB_TOKEN }} + repo-token: ${{ steps.team_token.outputs.token }} team-token: ${{ steps.team_token.outputs.token }} checks-token: ${{ steps.team_token.outputs.token }} pr-number: ${{ steps.number.outputs.content }} + request-reviewers: true