Skip to content

Commit d406474

Browse files
authored
GODRIVER-3564: Add config and workflows for release note labels (#2148)
1 parent 9bfea8e commit d406474

File tree

7 files changed

+59
-34
lines changed

7 files changed

+59
-34
lines changed

.evergreen/config.yml

Lines changed: 0 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -410,32 +410,6 @@ functions:
410410
export HEAD_SHA=${github_commit}
411411
bash etc/api_report.sh
412412
413-
"add PR labels":
414-
- command: shell.exec
415-
type: test
416-
params:
417-
shell: "bash"
418-
working_dir: src/go.mongodb.org/mongo-driver
419-
add_expansions_to_env: true
420-
script: |
421-
${PREPARE_SHELL}
422-
export CONFIG=$PROJECT_DIRECTORY/.github/labeler.yml
423-
export SCRIPT="$DRIVERS_TOOLS/.evergreen/github_app/apply-labels.sh"
424-
bash $SCRIPT -l $CONFIG -h ${github_commit} -o "mongodb" -n "mongo-go-driver"
425-
426-
"add PR reviewer":
427-
- command: shell.exec
428-
type: test
429-
params:
430-
shell: "bash"
431-
working_dir: src/go.mongodb.org/mongo-driver
432-
add_expansions_to_env: true
433-
script: |
434-
${PREPARE_SHELL}
435-
export CONFIG=$PROJECT_DIRECTORY/.github/reviewers.txt
436-
export SCRIPT="$DRIVERS_TOOLS/.evergreen/github_app/assign-reviewer.sh"
437-
bash $SCRIPT -p $CONFIG -h ${github_commit} -o "mongodb" -n "mongo-go-driver"
438-
439413
"backport pr":
440414
- command: subprocess.exec
441415
type: test
@@ -936,8 +910,6 @@ tasks:
936910
allowed_requesters: ["patch", "github_pr"]
937911
commands:
938912
- func: assume-test-secrets-ec2-role
939-
- func: "add PR reviewer"
940-
- func: "add PR labels"
941913
- func: "create-api-report"
942914

943915
- name: backport-pr

.github/CODEOWNERS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
* @mongodb/dbx-go

.github/labeler.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,14 @@
1-
21
priority-3-low:
32
- changed-files:
43
- any-glob-to-any-file: '*'
54

65
documentation:
76
- changed-files:
8-
- any-glob-to-any-file:
7+
- any-glob-to-any-file:
98
- docs/**
109
- examples/**
1110

1211
dependencies:
1312
- changed-files:
14-
- any-glob-to-any-file:
13+
- any-glob-to-any-file:
1514
- go.mod

.github/release.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
changelog:
2+
exclude:
3+
labels:
4+
- ignore-for-release
5+
- github_actions
6+
- submodules
7+
authors:
8+
- mongodb-drivers-pr-bot
9+
categories:
10+
- title: ⚠️ Breaking Changes
11+
labels:
12+
- breaking
13+
- title: ✨ New Features
14+
labels:
15+
- enhancement
16+
- feature
17+
- title: 🐛 Fixed
18+
labels:
19+
- bug
20+
- title: 📦 Dependency Updates
21+
labels:
22+
- dependencies
23+
- title: 📝 Other Changes
24+
labels:
25+
- "*"

.github/reviewers.txt

Lines changed: 0 additions & 3 deletions
This file was deleted.

.github/workflows/check-labels.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
name: Label Checker
2+
on:
3+
pull_request:
4+
types:
5+
- opened
6+
- synchronize
7+
- reopened
8+
- labeled
9+
- unlabeled
10+
11+
jobs:
12+
check_labels:
13+
name: Check labels
14+
runs-on: ubuntu-latest
15+
steps:
16+
- uses: docker://agilepathway/pull-request-label-checker:latest
17+
with:
18+
one_of: bug,feature,enhancement,documentation,dependencies
19+
repo_token: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/labeler.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
name: "Pull Request Labeler"
2+
on:
3+
- pull_request_target
4+
5+
jobs:
6+
labeler:
7+
permissions:
8+
contents: read
9+
pull-requests: write
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/labeler@v5

0 commit comments

Comments
 (0)