version: 2
updates:
  - package-ecosystem: npm
    directories:
      - "/"
      - "/pr-checks"
    schedule:
      interval: weekly
    cooldown:
      default-days: 7
      exclude:
        - "@actions/*"
    labels:
      - Rebuild
    # Ignore incompatible dependency updates
    ignore:
      # This is broken due to the way configuration files have changed.
      # This might be fixed when we move to eslint v9.
      - dependency-name: "eslint-plugin-import"
        versions: [">=2.30.0"]
    groups:
      npm-minor:
        patterns:
          - "*"
        update-types:
          - "minor"
          - "patch"
  - package-ecosystem: github-actions
    directories:
      - "/.github/workflows"
      - "/.github/actions"
    schedule:
      interval: weekly
    cooldown:
      default-days: 7
      exclude:
        - "actions/*"
    labels:
      - Rebuild
    groups:
      actions-minor:
        patterns:
          - "*"
        update-types:
          - "minor"
          - "patch"
