ci: add auto assign pr review gh action (#14366)

This commit is contained in:
Julien Robert 2022-12-20 17:19:19 +01:00 committed by GitHub
parent 11f1e8d74c
commit 24c952a7cc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

22
.github/workflows/pr-reviews.yml vendored Normal file
View File

@ -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 }}