diff --git a/.github/labeler.yml b/.github/labeler.yml new file mode 100644 index 00000000..ece4d588 --- /dev/null +++ b/.github/labeler.yml @@ -0,0 +1,15 @@ +documentation: + - changed-files: + - any-glob-to-any-file: "docs/**" + +feature: + - head-branch: ["^feature/"] + +fix: + - head-branch: ["^fix/"] + +hotfix: + - head-branch: ["^hotfix/"] + +release: + - head-branch: ["^release/"] diff --git a/.github/workflows/labeler.yml b/.github/workflows/labeler.yml new file mode 100644 index 00000000..7e12a66f --- /dev/null +++ b/.github/workflows/labeler.yml @@ -0,0 +1,16 @@ +name: Pull Request Labeler + +on: + pull_request: + types: [opened, synchronize, reopened] + +jobs: + labeler: + runs-on: ubuntu-latest + + permissions: + contents: read + pull-requests: write + + steps: + - uses: actions/labeler@v6 diff --git a/CLAUDE.md b/CLAUDE.md index 7d45416e..7d0d4eb9 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -235,6 +235,7 @@ GitHub Actions workflows in `.github/workflows/`: - **docker.yml**: Validate Docker build - **devcontainer.yml**: Validate Dev Container configuration - **format.yml**: Check Ruff formatting +- **labeler.yml**: Add label in GitHub - **lint.yml**: Run Pyright + Ruff linting - **test.yml**: Run pytest with coverage - **gh-deploy.yml**: Deploy documentation to GitHub Pages diff --git a/README.md b/README.md index e81462ae..06146b6a 100644 --- a/README.md +++ b/README.md @@ -342,6 +342,7 @@ Automated workflows ensure code quality and consistency. All workflows run on pu | `docker.yml` | Validate Docker build | Docker | | `devcontainer.yml` | Validate Dev Container configuration | devcontainer CLI | | `format.yml` | Check code formatting | Ruff | +| `labeler.yml` | Add label in GitHub | GitHub | | `lint.yml` | Run static analysis | Pyright, Ruff | | `test.yml` | Run test suite with coverage | pytest, coverage | | `gh-deploy.yml` | Deploy documentation to GitHub Pages | MkDocs |