From 7b4364f041436a58cb0f0abeccc0ce32f6aca60b Mon Sep 17 00:00:00 2001 From: Steven Silvester Date: Tue, 27 Feb 2024 10:45:40 -0600 Subject: [PATCH 1/5] GODRIVER-3139 Automatically Add Priority Labels to PRs --- .github/labeler.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 .github/labeler.yml diff --git a/.github/labeler.yml b/.github/labeler.yml new file mode 100644 index 0000000000..71e43a0ded --- /dev/null +++ b/.github/labeler.yml @@ -0,0 +1,10 @@ + +priority-3-low: +- changed-files: + - any-glob-to-any-file: '*' + +documentation: +- changed-files: + - any-glob-to-any-file: + - docs/** + - examples/** \ No newline at end of file From a326e6ec9af9aedce138db17642ec02224942098 Mon Sep 17 00:00:00 2001 From: Steven Silvester Date: Tue, 27 Feb 2024 10:51:56 -0600 Subject: [PATCH 2/5] add PR labels in static check --- .evergreen/config.yml | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/.evergreen/config.yml b/.evergreen/config.yml index 8785c40530..143cabb631 100644 --- a/.evergreen/config.yml +++ b/.evergreen/config.yml @@ -383,6 +383,18 @@ functions: export HEAD_SHA=${github_commit} bash etc/api_report.sh + "add PR labels": + - command: shell.exec + type: test + params: + shell: "bash" + 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" + bash $SCRIPT -l $CONFIG -h ${github_commit} -o "mongodb" -n "mongo-go-driver" + send-perf-data: - command: perf.send params: @@ -867,6 +879,7 @@ tasks: vars: targets: "check-fmt check-license check-modules lint" - func: "create-api-report" + - func: "add PR labels" - name: perf tags: ["performance"] From 53d8c237a08d1cd4029d71c159645bd703252ac0 Mon Sep 17 00:00:00 2001 From: Steven Silvester Date: Tue, 27 Feb 2024 10:53:24 -0600 Subject: [PATCH 3/5] add dependency file support --- .github/labeler.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/labeler.yml b/.github/labeler.yml index 71e43a0ded..58eb1bbd43 100644 --- a/.github/labeler.yml +++ b/.github/labeler.yml @@ -7,4 +7,9 @@ documentation: - changed-files: - any-glob-to-any-file: - docs/** - - examples/** \ No newline at end of file + - examples/** + +dependencies: +- changed-files: + - any-glob-to-any-file: + - go.mod From b708ceb7be1349fc0a7e384a3cbee4dec4928b8b Mon Sep 17 00:00:00 2001 From: Steven Silvester Date: Tue, 27 Feb 2024 11:22:48 -0600 Subject: [PATCH 4/5] update branch --- .evergreen/config.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.evergreen/config.yml b/.evergreen/config.yml index 143cabb631..fcf64e815e 100644 --- a/.evergreen/config.yml +++ b/.evergreen/config.yml @@ -145,7 +145,7 @@ functions: # If this was a patch build, doing a fresh clone would not actually test the patch cp -R ${PROJECT_DIRECTORY}/ $DRIVERS_TOOLS else - git clone https://github.com/mongodb-labs/drivers-evergreen-tools.git $DRIVERS_TOOLS + git clone --branch add-labels https://github.com/blink1073/drivers-evergreen-tools.git $DRIVERS_TOOLS fi echo "{ \"releases\": { \"default\": \"$MONGODB_BINARIES\" }}" > $MONGO_ORCHESTRATION_HOME/orchestration.config - command: shell.exec From ea0572b367601ecc8a084a5fb1bc067d2cf1427d Mon Sep 17 00:00:00 2001 From: Steven Silvester Date: Wed, 28 Feb 2024 17:48:06 -0600 Subject: [PATCH 5/5] use master branch --- .evergreen/config.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.evergreen/config.yml b/.evergreen/config.yml index fcf64e815e..143cabb631 100644 --- a/.evergreen/config.yml +++ b/.evergreen/config.yml @@ -145,7 +145,7 @@ functions: # If this was a patch build, doing a fresh clone would not actually test the patch cp -R ${PROJECT_DIRECTORY}/ $DRIVERS_TOOLS else - git clone --branch add-labels https://github.com/blink1073/drivers-evergreen-tools.git $DRIVERS_TOOLS + git clone https://github.com/mongodb-labs/drivers-evergreen-tools.git $DRIVERS_TOOLS fi echo "{ \"releases\": { \"default\": \"$MONGODB_BINARIES\" }}" > $MONGO_ORCHESTRATION_HOME/orchestration.config - command: shell.exec