diff --git a/.github/labeler.yml b/.github/labeler.yml new file mode 100644 index 00000000..79bbefd8 --- /dev/null +++ b/.github/labeler.yml @@ -0,0 +1,31 @@ +# See help here: https://github.com/marketplace/actions/labeler + +cpp: + - changed-files: + - any-glob-to-any-file: + - model_api/cpp/* + +python: + - changed-files: + - any-glob-to-any-file: + - model_api/python/* + +tests: + - changed-files: + - any-glob-to-any-file: + - tests/* + +docs: + - changed-files: + - any-glob-to-any-file: + - docs/* + - "**/*.md" + - "LICENSE" + +build: + - changed-files: + - any-glob-to-any-file: + - ".github/**/*" + - ".pre-commit-config.yaml" + - "pyproject.toml" + - "**/CMakeLists.txt" diff --git a/.github/workflows/pr-labeler.yml b/.github/workflows/pr-labeler.yml new file mode 100644 index 00000000..df97e0fd --- /dev/null +++ b/.github/workflows/pr-labeler.yml @@ -0,0 +1,15 @@ +name: "Pull Request Labeler" +permissions: read-all +on: + - pull_request_target + +jobs: + labeler: + permissions: + contents: read + pull-requests: write + runs-on: ubuntu-latest + steps: + - uses: actions/labeler@v5 + with: + repo-token: "${{ secrets.GITHUB_TOKEN }}"