Add labeler

This commit is contained in:
Jeremiah Lowin 2025-05-16 11:06:43 -04:00
commit 76ca57a04d
2 changed files with 41 additions and 0 deletions

29
.github/labeler.yml vendored Normal file
View file

@ -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"

12
.github/workflows/labeler.yml vendored Normal file
View file

@ -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