{
  "": "https://docs.renovatebot.com/renovate-schema.json",
  "extends": ["config:recommended"],

  "baseBranches": ["develop"],
  "labels": ["dependencies"],
  "assignees": ["xiaoxia"],

  "prConcurrentLimit": 3,
  "prHourlyLimit": 3,

  "schedule": ["after 2am before 6am on monday"],
  "timezone": "Asia/Shanghai",

  "vulnerabilityAlerts": {
    "enabled": true,
    "labels": ["dependencies", "security"],
    "schedule": ["at any time"]
  },

  "pip_requirements": {
    "fileMatch": [
      "(^|/)requirements\.txt$",
      "(^|/)requirements-base\.txt$",
      "(^|/)requirements-dev\.txt$",
      "(^|/)requirements-worker\.txt$"
    ]
  },

  "npm": {
    "fileMatch": [
      "(^|/)apps/web/package\.json$"
    ]
  },

  "packageRules": [
    {
      "matchDepTypes": ["dependencies"],
      "matchUpdateTypes": ["patch", "minor"],
      "groupName": "production deps (minor & patch)",
      "groupSlug": "prod-deps-minor-patch"
    },
    {
      "matchDepTypes": ["devDependencies"],
      "matchUpdateTypes": ["patch", "minor"],
      "groupName": "dev deps (minor & patch)",
      "groupSlug": "dev-deps-minor-patch"
    },
    {
      "matchUpdateTypes": ["major"],
      "labels": ["dependencies", "major-update"]
    }
  ],

  "rebaseWhen": "behind-base-branch",
  "semanticCommits": "auto",
  "semanticPrefix": "chore(deps): "
}
