Skip to content

Commit

Permalink
PYTHON-4243 Use GitHub App to Auto Assign Reviewer (#1539)
Browse files Browse the repository at this point in the history
  • Loading branch information
blink1073 authored Mar 1, 2024
1 parent dc50cbd commit 3510c4e
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 2 deletions.
22 changes: 22 additions & 0 deletions .evergreen/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2051,6 +2051,22 @@ tasks:
- func: "attach benchmark test results"
- 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:
# Choice of distro
- id: platform
Expand Down Expand Up @@ -3019,6 +3035,12 @@ buildvariants:
tasks:
- 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
display_name: Release
batchtime: 20160 # 14 days
Expand Down
2 changes: 0 additions & 2 deletions .github/CODEOWNERS

This file was deleted.

5 changes: 5 additions & 0 deletions .github/reviewers.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# List of reviewers for auto-assignment of reviews.
caseyclements
blink1073
Jibola
NoahStapp

0 comments on commit 3510c4e

Please sign in to comment.