labeler.yml•2.6 kB
# Copyright 2025 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#     http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
# SPDX-License-Identifier: Apache-2.0
# Add 'root' label to any root file changes
# Quotation marks are required for the leading asterisk
root:
  - changed-files:
      - any-glob-to-any-file: "*"
docs:
  - changed-files:
      - any-glob-to-any-file:
          - "**/*.md"
          - "**/*.rst"
          - "LICENSE"
          - "docs/**"
          - "py/engdocs/**"
go:
  - changed-files:
      - any-glob-to-any-file:
          - "**/*.go"
          - "**/go.mod"
          - "**/go.sum"
          - "go/**"
python:
  - changed-files:
      - any-glob-to-any-file:
          - "**/*.py"
          - "**/pyproject.toml"
          - "py/**"
js:
  - changed-files:
      - any-glob-to-any-file:
          - "**/*.js"
          - "**/*.jsx"
          - "**/*.ts"
          - "**/*.tsx"
          - "**/package.json"
          - "js/**"
tooling:
  - changed-files:
      - any-glob-to-any-file:
          - "genkit-tools/**"
config:
  - changed-files:
      - any-glob-to-any-file:
          - "**/*.toml"
          - "**/*.yaml"
          - "**/*.yml"
          - "**/.editorconfig"
          - "**/.github/**"
          - "**/.gitignore"
          - "**/.npmignore"
          - "**/.npmrc"
          - "**/.prettierignore"
          - "**/package.json"
          - "**/tsconfig.*.json"
          - "**/tsconfig.json"
          - "**/typedoc.json"
sample:
  - changed-files:
      - any-glob-to-any-file:
          - "samples/**"
dotprompt:
  - changed-files:
      - any-glob-to-any-file:
          - "**/dotprompt/**"
# Automatically add labels to any PR also based on branch naming conventions.
build:
  - head-branch: [^.*/build/.*, build]
chore:
  - head-branch: [^.*/chore/.*, chore]
ci:
  - head-branch: [^.*/ci/.*, ci]
feature:
  - head-branch: [^.*/feat/.*, feature]
fix:
  - head-branch: [^.*/fix/.*, fix]
perf:
  - head-branch: [^.*/perf/.*, perf]
refactor:
  - head-branch: [^.*/refactor/.*, refactor]
style:
  - head-branch: [^.*/style/.*, style]
test:
  - head-branch: [^.*/test/.*, test]