MOTOR-1271 Use GitHub App to Auto Assign Reviewer (#265)

* MOTOR-1271 Use GitHub App to Auto Assign Reviewer

* Add PR label to more things

* add reviewers file

* fix repo name
This commit is contained in:
Steven Silvester 2024-03-04 13:26:28 -06:00 committed by GitHub
parent e8a6d6de3c
commit 228e76af48
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 30 additions and 2 deletions

View File

@ -746,6 +746,7 @@ tasks:
- func: "run tox"
- name: "test-enterprise-auth"
tags: ["pr"]
commands:
- func: "bootstrap mongo-orchestration"
vars:
@ -754,12 +755,14 @@ tasks:
- func: "run enterprise auth tests"
- name: "docs"
tags: ["pr"]
commands:
- func: "run tox"
vars:
TOX_ENV: docs
- name: "doctest"
tags: ["pr"]
commands:
- func: "bootstrap mongo-orchestration"
vars:
@ -769,6 +772,22 @@ tasks:
vars:
TOX_ENV: doctest
- name: "assign-pr-reviewer"
tags: ["pr"]
commands:
- command: shell.exec
type: test
params:
shell: "bash"
working_dir: src
script: |
${PREPARE_SHELL}
set -x
export CONFIG=$PROJECT_DIRECTORY/.github/reviewers.txt
export SCRIPT="$DRIVERS_TOOLS/.evergreen/github_app/assign-reviewer.sh"
bash $SCRIPT -p $CONFIG -h ${github_commit} -o "mongodb" -n "motor"
echo '{"results": [{ "status": "PASS", "test_file": "Build", "log_raw": "Test completed" } ]}' > ${PROJECT_DIRECTORY}/test-results.json
# }}}
axes:
@ -991,3 +1010,9 @@ buildvariants:
PYTHON_BINARY: "/opt/python/3.7/bin/python3"
tasks:
- name: "doctest"
- name: rhel8-pr-assign-reviewer
display_name: Assign PR Reviewer
run_on: rhel87-small
tasks:
- name: "assign-pr-reviewer"

2
.github/CODEOWNERS vendored
View File

@ -1,2 +0,0 @@
# Global owner for repo
* @mongodb/dbx-python

5
.github/reviewers.txt vendored Normal file
View File

@ -0,0 +1,5 @@
# List of reviewers for auto-assignment of reviews.
caseyclements
blink1073
Jibola
NoahStapp