# Dependabot — root app + GitHub Actions + Docusaurus subfolder.
# https://docs.github.com/en/code-security/dependabot/dependabot-version-updates
#
# Groups: one grouped PR per ecosystem/directory (fewer branches + fewer parallel CI runs).
# open-pull-requests-limit: 1 keeps the queue from exploding if a group is skipped.

version: 2
updates:
  - package-ecosystem: "npm"
    directory: "/"
    schedule:
      interval: "weekly"
    open-pull-requests-limit: 1
    labels:
      - "dependencies"
    groups:
      root-npm:
        patterns:
          - "*"

  - package-ecosystem: "npm"
    directory: "/documentation"
    schedule:
      interval: "weekly"
    open-pull-requests-limit: 1
    labels:
      - "dependencies"
    groups:
      documentation-npm:
        patterns:
          - "*"

  - package-ecosystem: "github-actions"
    directory: "/"
    schedule:
      interval: "weekly"
    open-pull-requests-limit: 1
    labels:
      - "dependencies"
    groups:
      github-actions:
        patterns:
          - "*"
