diff --git a/.evergreen/config.yml b/.evergreen/config.yml index cd1886cbc2..2a7778d026 100644 --- a/.evergreen/config.yml +++ b/.evergreen/config.yml @@ -219,28 +219,6 @@ functions: HEAD_SHA: "${github_commit}" args: [*task-runner, api-report] - "add PR labels": - - command: subprocess.exec - type: test - params: - binary: bash - add_expansions_to_env: true - env: - COMMIT: "${github_commit}" - PR_TASK: apply-labels - args: [*task-runner, pr-task] - - "add PR reviewer": - - command: subprocess.exec - type: test - params: - binary: bash - add_expansions_to_env: true - env: - COMMIT: "${github_commit}" - PR_TASK: assign-reviewer - args: [*task-runner, pr-task] - "backport pr": - command: subprocess.exec type: test @@ -669,8 +647,6 @@ tasks: allowed_requesters: ["patch", "github_pr"] commands: - func: assume-test-secrets-ec2-role - - func: "add PR reviewer" - - func: "add PR labels" - func: "create-api-report" - name: backport-pr diff --git a/.github/labeler.yml b/.github/labeler.yml index 58eb1bbd43..ae7a121cc6 100644 --- a/.github/labeler.yml +++ b/.github/labeler.yml @@ -1,15 +1,14 @@ - priority-3-low: - changed-files: - any-glob-to-any-file: '*' documentation: - changed-files: - - any-glob-to-any-file: + - any-glob-to-any-file: - docs/** - examples/** dependencies: - changed-files: - - any-glob-to-any-file: + - any-glob-to-any-file: - go.mod diff --git a/.github/release.yml b/.github/release.yml index 6f7a5433cb..34b72a0bdf 100644 --- a/.github/release.yml +++ b/.github/release.yml @@ -2,20 +2,24 @@ changelog: exclude: labels: - ignore-for-release + - github_actions - submodules authors: - mongodb-drivers-pr-bot categories: - - title: Breaking Changes 🛠 + - title: ⚠️ Breaking Changes labels: - - breaking-change - - title: New Features + - breaking + - title: ✨ New Features labels: - enhancement - - title: Fixed + - feature + - title: 🐛 Fixed labels: - bug - - fixed - - title: Other Changes + - title: 📦 Dependency Updates + labels: + - dependencies + - title: 📝 Other Changes labels: - "*" diff --git a/.github/reviewers.txt b/.github/reviewers.txt deleted file mode 100644 index 2230c13423..0000000000 --- a/.github/reviewers.txt +++ /dev/null @@ -1,3 +0,0 @@ -qingyang-hu -matthewdale -prestonvasquez diff --git a/.github/workflows/check-labels.yml b/.github/workflows/check-labels.yml new file mode 100644 index 0000000000..6a1be9c31c --- /dev/null +++ b/.github/workflows/check-labels.yml @@ -0,0 +1,19 @@ +name: Label Checker +on: + pull_request: + types: + - opened + - synchronize + - reopened + - labeled + - unlabeled + +jobs: + check_labels: + name: Check labels + runs-on: ubuntu-latest + steps: + - uses: docker://agilepathway/pull-request-label-checker:latest + with: + one_of: bug,feature,enhancement,documentation,dependencies + repo_token: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/labeler.yml b/.github/workflows/labeler.yml new file mode 100644 index 0000000000..52474c6a6c --- /dev/null +++ b/.github/workflows/labeler.yml @@ -0,0 +1,12 @@ +name: "Pull Request Labeler" +on: + - pull_request_target + +jobs: + labeler: + permissions: + contents: read + pull-requests: write + runs-on: ubuntu-latest + steps: + - uses: actions/labeler@v5