From 76ca57a04db3b0b85b99ead37d41f21e51c01034 Mon Sep 17 00:00:00 2001 From: Jeremiah Lowin <153965+jlowin@users.noreply.github.com> Date: Fri, 16 May 2025 11:06:43 -0400 Subject: [PATCH] Add labeler --- .github/labeler.yml | 29 +++++++++++++++++++++++++++++ .github/workflows/labeler.yml | 12 ++++++++++++ 2 files changed, 41 insertions(+) create mode 100644 .github/labeler.yml create mode 100644 .github/workflows/labeler.yml diff --git a/.github/labeler.yml b/.github/labeler.yml new file mode 100644 index 000000000..f7e6703b7 --- /dev/null +++ b/.github/labeler.yml @@ -0,0 +1,29 @@ +documentation: + - changed-files: + - any-glob-to-any-file: "docs/**" + +example: + - changed-files: + - any-glob-to-any-file: + - "examples/**" + +tests: + - changed-files: + - any-glob-to-any-file: "tests/**" + +"component: HTTP": + - changed-files: + - any-glob-to-any-file: "src/fastmcp/server/http.py" + +"component: client": + - changed-files: + - any-glob-to-any-file: "src/fastmcp/client/**" + +"contrib": + - changed-files: + - any-glob-to-any-file: "src/fastmcp/contrib/**" + +"component: openapi": + - changed-files: + - any-glob-to-any-file: + - "src/**/*openapi*.py" diff --git a/.github/workflows/labeler.yml b/.github/workflows/labeler.yml new file mode 100644 index 000000000..52474c6a6 --- /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