# This configures label matching for PR's.
#
# The keys are labels, and the values are lists of minimatch patterns
# to which those labels apply.
#
# NOTE: This can only add labels, not remove them.
# NOTE: Due to YAML syntax limitations, patterns or labels which start
# with a character that is part of the standard YAML syntax must be
# quoted.
#
# Please keep the labels sorted and deduplicated.

area/ACLK:
  - any:
      - changed-files:
          - any-glob-to-any-file:
              - src/aclk/**
              - src/database/sqlite/sqlite_aclk*
              - src/aclk/mqtt_websockets

area/claim:
  - any:
      - changed-files:
          - any-glob-to-any-file:
              - src/claim/*

area/exporting:
  - any:
      - changed-files:
          - any-glob-to-any-file:
              - src/exporting/**

area/build:
  - any:
      - changed-files:
          - any-glob-to-any-file:
              - build/**
              - build_external/**
              - CMakeLists.txt
              - configure.ac
              - Makefile.am
              - "**/Makefile.am"

area/ci:
  - any:
      - changed-files:
          - any-glob-to-any-file:
              - .github/**

area/daemon:
  - any:
      - changed-files:
          - any-glob-to-any-file:
              - src/daemon/**

area/database:
  - any:
      - changed-files:
          - any-glob-to-any-file:
              - src/database/**

area/docs:
  - any:
      - changed-files:
          - any-glob-to-any-file:
              - "*.md"
              - "**/*.md"
              - "**/*.mdx"
              - docs/diagrams/**

# -----------------collectors----------------------

area/collectors:
  - any:
      - changed-files:
          - any-glob-to-any-file:
              - src/collectors/**
              - src/go/**

collectors/apps:
  - any:
      - changed-files:
          - any-glob-to-any-file:
              - src/collectors/apps.plugin/**

collectors/cgroups:
  - any:
      - changed-files:
          - any-glob-to-any-file:
              - src/collectors/cgroups.plugin/**

collectors/charts.d:
  - any:
      - changed-files:
          - any-glob-to-any-file:
              - src/collectors/charts.d.plugin/**

collectors/cups:
  - any:
      - changed-files:
          - any-glob-to-any-file:
              - src/collectors/cups.plugin/**

collectors/debugfs:
  - any:
      - changed-files:
          - any-glob-to-any-file:
              - src/collectors/debugfs.plugin/**

collectors/diskspace:
  - any:
      - changed-files:
          - any-glob-to-any-file:
              - src/collectors/diskspace.plugin/**

collectors/ebpf:
  - any:
      - changed-files:
          - any-glob-to-any-file:
              - src/collectors/ebpf.plugin/**

collectors/freebsd:
  - any:
      - changed-files:
          - any-glob-to-any-file:
              - src/collectors/freebsd.plugin/**

collectors/freeipmi:
  - any:
      - changed-files:
          - any-glob-to-any-file:
              - src/collectors/freeipmi.plugin/**

collectors/go.d:
  - any:
      - changed-files:
          - any-glob-to-any-file:
              - src/go/**

collectors/idlejitter:
  - any:
      - changed-files:
          - any-glob-to-any-file:
              - src/collectors/idlejitter.plugin/**

collectors/ioping:
  - any:
      - changed-files:
          - any-glob-to-any-file:
              - src/collectors/ioping.plugin/**

collectors/macos:
  - any:
      - changed-files:
          - any-glob-to-any-file:
              - src/collectors/macos.plugin/**

collectors/nfacct:
  - any:
      - changed-files:
          - any-glob-to-any-file:
              - src/collectors/nfacct.plugin/**

collectors/perf:
  - any:
      - changed-files:
          - any-glob-to-any-file:
              - src/collectors/perf.plugin/**

collectors/proc:
  - any:
      - changed-files:
          - any-glob-to-any-file:
              - src/collectors/proc.plugin/**

collectors/python.d:
  - any:
      - changed-files:
          - any-glob-to-any-file:
              - src/collectors/python.d.plugin/**

collectors/slabinfo:
  - any:
      - changed-files:
          - any-glob-to-any-file:
              - src/collectors/slabinfo.plugin/**

collectors/statsd:
  - any:
      - changed-files:
          - any-glob-to-any-file:
              - src/collectors/statsd.plugin/**

collectors/systemd-journal:
  - any:
      - changed-files:
          - any-glob-to-any-file:
              - src/collectors/systemd-journal.plugin/**

collectors/tc:
  - any:
      - changed-files:
          - any-glob-to-any-file:
              - src/collectors/tc.plugin/**

collectors/timex:
  - any:
      - changed-files:
          - any-glob-to-any-file:
              - src/collectors/timex.plugin/**

collectors/windows:
  - any:
      - changed-files:
          - any-glob-to-any-file:
              - src/collectors/windows.plugin/**

collectors/xenstat:
  - any:
      - changed-files:
          - any-glob-to-any-file:
              - src/collectors/xenstat.plugin/**

# ----------------/collectors----------------------

area/go:
  - any:
      - changed-files:
          - any-glob-to-any-file:
              - src/go/**

area/health:
  - any:
      - changed-files:
          - any-glob-to-any-file:
              - src/health/**

area/metadata:
  - any:
      - changed-files:
          - any-glob-to-any-file:
              - "**/*metadata.yaml"
              - integrations/**

area/ml:
  - any:
      - changed-files:
          - any-glob-to-any-file:
              - src/ml/**

area/packaging:
  - any:
      - changed-files:
          - any-glob-to-any-file:
              - packaging/**
              - system/**
              - Dockerfile*
              - netdata-installer.sh
              - netdata.spec.in

area/registry:
  - any:
      - changed-files:
          - any-glob-to-any-file:
              - src/registry/**

area/streaming:
  - any:
      - changed-files:
          - any-glob-to-any-file:
              - src/streaming/**

area/tests:
  - any:
      - changed-files:
          - any-glob-to-any-file:
              - tests/**
              - src/daemon/unit_test*
              - packaging/utils/coverity-scan.sh

area/web:
  - any:
      - changed-files:
          - any-glob-to-any-file:
              - src/web/**

area/plugins.d:
  - any:
      - changed-files:
          - any-glob-to-any-file:
              - src/plugins.d/**
