diff --git a/.github/workflows/pr-reviews.yml b/.github/workflows/pr-reviews.yml new file mode 100644 index 0000000000..29aa60b0c3 --- /dev/null +++ b/.github/workflows/pr-reviews.yml @@ -0,0 +1,22 @@ +# Request review on PRs without changing our codeowners file (which is stricter than review team) +name: Request review on PRs + +on: + pull_request: + types: + - opened + - reopened + +permissions: + pull-requests: write + +jobs: + request: + name: Request reviews on opened PRs + runs-on: ubuntu-latest + steps: + - name: Create PR review request + run: gh pr edit $PR_URL --add-reviewer @cosmos/sdk-core-review + env: + GH_TOKEN: ${{ secrets.PRBOT_PAT }} + PR_URL: ${{ github.event.pull_request.html_url }}