PYTHON-4243 Use GitHub App to Auto Assign Reviewer (#1539)

This commit is contained in:
Steven Silvester 2024-03-01 11:42:31 -06:00 committed by GitHub
parent dc50cbd35a
commit 3510c4e5f6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 27 additions and 2 deletions

View File

@ -2051,6 +2051,22 @@ tasks:
- func: "attach benchmark test results" - func: "attach benchmark test results"
- func: "send dashboard data" - func: "send dashboard data"
- 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 "mongo-python-driver"
echo '{"results": [{ "status": "PASS", "test_file": "Build", "log_raw": "Test completed" } ]}' > ${PROJECT_DIRECTORY}/test-results.json
axes: axes:
# Choice of distro # Choice of distro
- id: platform - id: platform
@ -3019,6 +3035,12 @@ buildvariants:
tasks: tasks:
- name: test_aws_lambda_task_group - name: test_aws_lambda_task_group
- name: rhel8-pr-assign-reviewer
display_name: Assign PR Reviewer
run_on: rhel87-small
tasks:
- name: "assign-pr-reviewer"
- name: Release - name: Release
display_name: Release display_name: Release
batchtime: 20160 # 14 days batchtime: 20160 # 14 days

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