# Auto-label config for actions/labeler
# Maps changed file paths to domain labels
# All matching labels are applied

core:
  - changed-files:
    - any-glob-to-any-file:
      - 'packages/better-auth/src/auth/**'
      - 'packages/better-auth/src/context/**'
      - 'packages/better-auth/src/types/**'
      - 'packages/better-auth/src/utils/**'
      - 'packages/better-auth/src/crypto/**'
      - 'packages/better-auth/src/api/**'
      - 'packages/better-auth/src/cookies/**'
      - 'packages/better-auth/src/client/**'
      - 'packages/better-auth/src/plugins/jwt/**'
      - 'packages/better-auth/src/plugins/bearer/**'
      - 'packages/better-auth/src/plugins/multi-session/**'
      - 'packages/better-auth/src/plugins/custom-session/**'
      - 'packages/core/**'
      - 'packages/redis-storage/**'

database:
  - changed-files:
    - any-glob-to-any-file:
      - 'packages/better-auth/src/db/**'
      - 'packages/better-auth/src/adapters/**'
      - 'packages/drizzle-adapter/**'
      - 'packages/prisma-adapter/**'
      - 'packages/mongo-adapter/**'
      - 'packages/kysely-adapter/**'
      - 'packages/memory-adapter/**'

oauth:
  - changed-files:
    - any-glob-to-any-file:
      - 'packages/better-auth/src/plugins/generic-oauth/**'
      - 'packages/better-auth/src/plugins/oauth-proxy/**'
      - 'packages/better-auth/src/plugins/one-tap/**'
      - 'packages/better-auth/src/oauth2/**'
      - 'packages/core/src/social-providers/**'
      - 'packages/core/src/oauth2/**'

credentials:
  - changed-files:
    - any-glob-to-any-file:
      - 'packages/better-auth/src/plugins/magic-link/**'
      - 'packages/better-auth/src/plugins/email-otp/**'
      - 'packages/better-auth/src/plugins/phone-number/**'
      - 'packages/better-auth/src/plugins/username/**'
      - 'packages/better-auth/src/plugins/anonymous/**'
      - 'packages/better-auth/src/plugins/siwe/**'
      - 'packages/passkey/**'

identity:
  - changed-files:
    - any-glob-to-any-file:
      - 'packages/oauth-provider/**'
      - 'packages/better-auth/src/plugins/oidc-provider/**'
      - 'packages/better-auth/src/plugins/mcp/**'
      - 'packages/better-auth/src/plugins/device-authorization/**'

organization:
  - changed-files:
    - any-glob-to-any-file:
      - 'packages/better-auth/src/plugins/organization/**'
      - 'packages/better-auth/src/plugins/admin/**'
      - 'packages/better-auth/src/plugins/access/**'

security:
  - changed-files:
    - any-glob-to-any-file:
      - 'packages/better-auth/src/plugins/two-factor/**'
      - 'packages/better-auth/src/api/rate-limiter/**'
      - 'packages/better-auth/src/plugins/captcha/**'
      - 'packages/better-auth/src/plugins/haveibeenpwned/**'

enterprise:
  - changed-files:
    - any-glob-to-any-file:
      - 'packages/sso/**'
      - 'packages/scim/**'

payments:
  - changed-files:
    - any-glob-to-any-file:
      - 'packages/stripe/**'
      - 'packages/api-key/**'

platform:
  - changed-files:
    - any-glob-to-any-file:
      - 'packages/expo/**'
      - 'packages/electron/**'
      - 'packages/better-auth/src/integrations/**'

devtools:
  - changed-files:
    - any-glob-to-any-file:
      - 'packages/cli/**'
      - 'packages/better-auth/src/plugins/open-api/**'
      - 'packages/telemetry/**'
      - 'packages/i18n/**'
      - 'packages/test-utils/**'

docs:
  - changed-files:
    - any-glob-to-any-file:
      - 'docs/**'
      - 'demo/**'

devops:
  - changed-files:
    - any-glob-to-any-file:
      - '.github/**'
      - 'e2e/**'
