diff --git a/.evergreen/config.yml b/.evergreen/config.yml index 29426f496d..3421cde6ae 100644 --- a/.evergreen/config.yml +++ b/.evergreen/config.yml @@ -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: @@ -875,8 +887,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"] @@ -2302,6 +2319,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: diff --git a/.github/reviewers.txt b/.github/reviewers.txt new file mode 100644 index 0000000000..395bdb4e4d --- /dev/null +++ b/.github/reviewers.txt @@ -0,0 +1,4 @@ +qingyang-hu +matthewdale +prestonvasquez +blink1073 diff --git a/docs/CODEOWNERS b/docs/CODEOWNERS deleted file mode 100644 index ecf6ff135b..0000000000 --- a/docs/CODEOWNERS +++ /dev/null @@ -1,2 +0,0 @@ -# Global owner for repo -* @mongodb/dbx-go