Skip to content

Commit

Permalink
MOTOR-1271 Use GitHub App to Auto Assign Reviewer (#265)
Browse files Browse the repository at this point in the history
* MOTOR-1271 Use GitHub App to Auto Assign Reviewer

* Add PR label to more things

* add reviewers file

* fix repo name
  • Loading branch information
blink1073 committed Mar 4, 2024
1 parent e8a6d6d commit 228e76a
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 2 deletions.
25 changes: 25 additions & 0 deletions .evergreen/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -746,6 +746,7 @@ tasks:
- func: "run tox"

- name: "test-enterprise-auth"
tags: ["pr"]
commands:
- func: "bootstrap mongo-orchestration"
vars:
Expand All @@ -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:
Expand All @@ -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:
Expand Down Expand Up @@ -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 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 228e76a

Please sign in to comment.