add PR Gatekeeper (#12646)

* add PR Gatekeeper

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* Apply suggestions from code review

Co-authored-by: Carlos Mocholí <carlossmocholi@gmail.com>

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Carlos Mocholí <carlossmocholi@gmail.com>
This commit is contained in:
Jirka Borovec 2022-04-08 00:02:25 +09:00 committed by GitHub
parent 03609bc09c
commit 7988351d88
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 43 additions and 0 deletions

1
.github/CODEOWNERS vendored
View File

@ -54,6 +54,7 @@
/tests/helpers/boring_model.py @williamfalcon @tchaton @borda /tests/helpers/boring_model.py @williamfalcon @tchaton @borda
/.github/CODEOWNERS @williamfalcon /.github/CODEOWNERS @williamfalcon
/.github/approve_config.yml @williamfalcon
/SECURITY.md @williamfalcon /SECURITY.md @williamfalcon
/README.md @williamfalcon @edenlightning @borda /README.md @williamfalcon @edenlightning @borda
/setup.py @williamfalcon @borda /setup.py @williamfalcon @borda

17
.github/approve_config.yml vendored Normal file
View File

@ -0,0 +1,17 @@
approvals:
# check will fail if there is no approval
minimum: 1
groups:
- name: GridAI
minimum: 1
from:
- awaelchli
- Borda
- carmocca
- edenlightning
- ethanwharris
- kaushikb11
- krshrimali
- rohitgr7
- tchaton
- williamFalcon

25
.github/workflows/ci_pr-gatekeeper.yml vendored Normal file
View File

@ -0,0 +1,25 @@
name: 'PR Gatekeeper'
on:
pull_request:
types:
[
assigned,
unassigned,
opened,
reopened,
synchronize,
review_requested,
review_request_removed
]
pull_request_review:
jobs:
pr-gatekeeper:
name: PR Gatekeeper
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: octodemo/pr-gatekeeper@main
with:
token: ${{ secrets.GITHUB_TOKEN }}