# Please see the documentation for all configuration options:
# https://help.github.com/github/administering-a-repository/configuration-options-for-dependency-updates

version: 2
updates:
  - package-ecosystem: github-actions
    directory: "/"
    schedule:
      interval: daily
      time: "01:00"

  - package-ecosystem: gomod
    directory: "/"
    schedule:
      interval: daily
      time: "01:05"
    labels:
      - dependencies
  - package-ecosystem: gomod
    directory: "/simapp"
    schedule:
      interval: daily
      time: "01:10"
    labels:
      - dependencies
  - package-ecosystem: gomod
    directory: "/tests"
    schedule:
      interval: weekly
      day: monday
      time: "01:15"
    labels:
      - dependencies
  - package-ecosystem: gomod
    directory: "/api"
    schedule:
      interval: weekly
      day: tuesday
      time: "01:20"
    labels:
      - dependencies
  - package-ecosystem: gomod
    directory: "/core"
    schedule:
      interval: weekly
      day: thursday
      time: "01:30"
    labels:
      - dependencies
  - package-ecosystem: gomod
    directory: "/depinject"
    schedule:
      interval: weekly
      day: friday
      time: "01:35"
    labels:
      - dependencies
  - package-ecosystem: gomod
    directory: "/errors"
    schedule:
      interval: weekly
      day: monday
      time: "01:40"
    labels:
      - dependencies
  - package-ecosystem: gomod
    directory: "/math"
    schedule:
      interval: weekly
      day: tuesday
      time: "01:45"
    labels:
      - dependencies
  - package-ecosystem: gomod
    directory: "/client/v2"
    schedule:
      interval: weekly
      day: wednesday
      time: "01:50"
    labels:
      - dependencies
  - package-ecosystem: gomod
    directory: "/tools/cosmovisor"
    schedule:
      interval: weekly
      day: friday
      time: "02:00"
    labels:
      - dependencies
  - package-ecosystem: gomod
    directory: "/tools/confix"
    schedule:
      interval: weekly
      day: tuesday
      time: "02:10"
    labels:
      - dependencies
  - package-ecosystem: gomod
    directory: "/collections"
    schedule:
      interval: weekly
      day: friday
      time: "02:20"
    labels:
      - dependencies
  - package-ecosystem: gomod
    directory: "/store"
    schedule:
      interval: weekly
      day: friday
      time: "02:45"
    labels:
      - dependencies
  - package-ecosystem: gomod
    directory: "log"
    schedule:
      interval: weekly
      day: tuesday
      time: "02:55"
    labels:
      - dependencies
  - package-ecosystem: gomod
    directory: "/tools/benchmark"
    schedule:
      interval: weekly
      day: wednesday
      time: "03:25"
    labels:
      - dependencies

  # Dependencies should be up to date on release branch
  - package-ecosystem: gomod
    directory: "/"
    target-branch: "release/v0.53.x"
    schedule:
      interval: daily
      time: "03:00"
    labels:
      - dependencies
    allow:
      - dependency-name: "github.com/cosmos/cosmos-sdk/*"
        dependency-type: "all"
      - dependency-name: "github.com/cosmos/*"
        dependency-type: "all"
      - dependency-name: "cosmossdk.io/*"
        dependency-type: "all"
      - dependency-name: "github.com/cometbft/*"
        dependency-type: "all"
    ignore:
      - dependency-name: "github.com/cometbft/cometbft"
        # cometbft 0.38 is not semver, but we want to only update "patch" versions for 0.38.x
        update-types:
          ["version-update:semver-major", "version-update:semver-minor"]

  - package-ecosystem: gomod
    directory: "/"
    target-branch: "release/v0.54.x"
    schedule:
      interval: daily
      time: "03:05"
    labels:
      - dependencies
    allow:
      - dependency-name: "github.com/cosmos/cosmos-sdk/*"
        dependency-type: "all"
      - dependency-name: "github.com/cosmos/*"
        dependency-type: "all"
      - dependency-name: "cosmossdk.io/*"
        dependency-type: "all"
      - dependency-name: "github.com/cometbft/*"
        dependency-type: "all"
    ignore:
      - dependency-name: "github.com/cometbft/cometbft"
        # cometbft 0.39 is not semver, but we want to only update "patch" versions for 0.39.x
        update-types:
          ["version-update:semver-major", "version-update:semver-minor"]

  - package-ecosystem: gomod
    directory: "/"
    target-branch: "release/v0.55.x"
    schedule:
      interval: daily
      time: "03:10"
    labels:
      - dependencies
    allow:
      - dependency-name: "github.com/cosmos/cosmos-sdk/*"
        dependency-type: "all"
      - dependency-name: "github.com/cosmos/*"
        dependency-type: "all"
      - dependency-name: "cosmossdk.io/*"
        dependency-type: "all"
      - dependency-name: "github.com/cometbft/*"
        dependency-type: "all"
    ignore:
      - dependency-name: "github.com/cometbft/cometbft"
        # cometbft 0.40 is not semver, but we want to only update "patch" versions for 0.40.x
        update-types:
          ["version-update:semver-major", "version-update:semver-minor"]
