version: 2

updates:
  # npm / pnpm ecosystem
  - package-ecosystem: npm
    directory: /
    schedule:
      interval: weekly
      day: monday
      time: '08:00'
      timezone: Asia/Jerusalem
    open-pull-requests-limit: 5
    groups:
      # Group minor and patch updates into a single PR
      minor-and-patch:
        update-types:
          - minor
          - patch
    ignore:
      # Major version bumps need manual review
      - dependency-name: '*'
        update-types: ['version-update:semver-major']
    commit-message:
      prefix: 'chore(deps)'
    labels:
      - dependencies
      - automated

  # GitHub Actions ecosystem
  - package-ecosystem: github-actions
    directory: /
    schedule:
      interval: weekly
      day: monday
      time: '08:00'
      timezone: Asia/Jerusalem
    open-pull-requests-limit: 3
    groups:
      actions-minor-patch:
        update-types:
          - minor
          - patch
    commit-message:
      prefix: 'chore(ci)'
    labels:
      - dependencies
      - ci
      - automated
