Skip to content

GODRIVER-3148 Use GitHub App to Auto Assign Reviewer #1572

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 6 commits into from
Mar 6, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
33 changes: 30 additions & 3 deletions .evergreen/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -391,10 +391,22 @@ functions:
working_dir: src/go.mongodb.org/mongo-driver
script: |
${PREPARE_SHELL}
CONFIG=$PROJECT_DIRECTORY/.github/labeler.yml
SCRIPT="$DRIVERS_TOOLS/.evergreen/github_app/apply-labels.sh"
export CONFIG=$PROJECT_DIRECTORY/.github/labeler.yml
export SCRIPT="$DRIVERS_TOOLS/.evergreen/github_app/apply-labels.sh"
bash $SCRIPT -l $CONFIG -h ${github_commit} -o "mongodb" -n "mongo-go-driver"

"add PR reviewer":
- command: shell.exec
type: test
params:
shell: "bash"
working_dir: src/go.mongodb.org/mongo-driver
script: |
${PREPARE_SHELL}
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-go-driver"

send-perf-data:
- command: perf.send
params:
Expand Down Expand Up @@ -878,8 +890,13 @@ tasks:
- func: run-make
vars:
targets: "check-fmt check-license check-modules lint"
- func: "create-api-report"

- name: pull-request-helpers
allowed_requesters: ["patch", "github_pr"]
commands:
- func: "add PR reviewer"
- func: "add PR labels"
- func: "create-api-report"

- name: perf
tags: ["performance"]
Expand Down Expand Up @@ -2305,6 +2322,16 @@ buildvariants:
tasks:
- name: ".static-analysis"

- name: pull-request-helpers
tags: ["pullrequest"]
display_name: "Pull Request Helpers"
run_on:
- rhel8.7-small
expansions:
GO_DIST: "/opt/golang/go1.20"
tasks:
- name: "pull-request-helpers"

- name: perf
display_name: "Performance"
run_on:
Expand Down
4 changes: 4 additions & 0 deletions .github/reviewers.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
qingyang-hu
matthewdale
prestonvasquez
blink1073
2 changes: 0 additions & 2 deletions docs/CODEOWNERS

This file was deleted.