{
  "$schema": "https://docs.renovatebot.com/renovate-schema.json",
  "automerge": false,
  "extends": [
    "config:recommended"
  ],
  "addLabels": [
    "renovate"
  ],
  "enabledManagers": ["regex"],
  "automergeStrategy": "rebase",
  "customManagers": [
    {
      "customType": "regex",
      "fileMatch": [
        "^.*docker-compose\\.json$"
      ],
      "matchStrings": [
        "\"image\": \"(?<depName>.*?):(?<currentValue>.*?)\","
      ],
      "datasourceTemplate": "docker"
    }
  ],
  "packageRules": [
    {
      "matchUpdateTypes": [
        "minor",
        "major",
        "patch",
        "pin",
        "digest"
      ],
      "automerge": false
    },
    {
      "matchDepTypes": [
        "devDependencies"
      ],
      "automerge": false
    },
    {
      "matchPackageNames": [
        "mariadb",
        "mysql",
        "monogdb",
        "postgres",
        "redis"
      ],
      "enabled": false
    }
  ],
  "postUpgradeTasks": {
    "commands": [
      "bun ./scripts/update-config.ts {{packageFile}} {{newVersion}}",
      "bun install && bun run test"
    ],
    "fileFilters": [
      "**/*"
    ],
    "executionMode": "update"
  }
}
