beads/.github/dependabot.yml
matt wilkie 47c8924b65
ci(dependabot): group version bumps per ecosystem (#5038)
* ci(dependabot): group version bumps per ecosystem

Singleton gomod PRs each rewrite go.sum and invalidate the nix vendorHash
in default.nix. The update-vendor-hash workflow pushes a bot commit per
PR, after which dependabot refuses plain rebases, so every merge forces
'@dependabot recreate' + a fresh CI cycle on all remaining singles
(2026-07-24: five go PRs cycled this way, one stuck for two weeks).
Grouping means one PR, one bot-computed vendorHash, one CI cycle.

Go majors stay ungrouped so a breaking bump cannot hold the routine
group hostage. Actions and beads-mcp Python bumps are low-risk and
group wholesale.

Agent-Signature: claude-fable-5-high on behalf of matt wilkie

* ci(dependabot): isolate testcontainers group, raise gomod PR limit

Review findings (codex gpt-5.6-sol + claude reviewer, 2026-07-25):

- testcontainers-go and modules/dolt must bump in lockstep and ship
  breaking changes as 0.x minors, which dependabot classifies as
  'minor' by version arithmetic - so they would ride the routine group.
  Give them their own group: coupled together, never blocking go-deps.
- The five open singleton gomod PRs exactly saturate
  open-pull-requests-limit: 5, and dependabot opens no new version PR
  at the limit - the grouped PR could be wedged out. Raise to 10.
- Reword 'breaking bump' to 'SemVer-major bump'; dependabot cannot
  infer breaking behavior, only version positions.

Agent-Signature: claude-fable-5-high on behalf of matt wilkie
2026-07-25 16:06:16 -07:00

71 lines
2.3 KiB
YAML

version: 2
updates:
# Go modules
- package-ecosystem: "gomod"
directory: "/"
schedule:
interval: "weekly"
# Headroom above the group count: grouped PRs count as one, but SemVer-major
# singles plus the testcontainers group plus a migration window with old
# singleton PRs still open must not wedge at the limit (dependabot opens no
# new version PR while the limit is saturated).
open-pull-requests-limit: 10
labels:
- "dependencies"
- "go"
# Group minor/patch Go bumps into a single PR. Every gomod bump rewrites
# go.sum, which invalidates the nix vendorHash in default.nix; N singleton
# PRs mean N vendorHash bot-commits and N '@dependabot recreate' rounds
# after each merge (see update-vendor-hash.yml caveat). One grouped PR
# gets one bot-computed hash. SemVer-majors stay separate so they cannot
# block the routine group (note: pre-1.0 modules ship breaking changes as
# "minor" bumps, which do ride in the group — dependabot classifies by
# version arithmetic only).
#
# testcontainers-go and its modules/dolt child must bump in lockstep
# (the module requires a matching root), and the project pins 0.x
# releases with routine breaking changes — so they get their own group:
# always coupled together, never blocking go-deps.
groups:
testcontainers:
applies-to: version-updates
patterns:
- "github.com/testcontainers/testcontainers-go*"
go-deps:
applies-to: version-updates
exclude-patterns:
- "github.com/testcontainers/testcontainers-go*"
update-types:
- "minor"
- "patch"
# GitHub Actions
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "weekly"
open-pull-requests-limit: 5
labels:
- "dependencies"
- "ci"
groups:
actions:
applies-to: version-updates
patterns:
- "*"
# Python (beads-mcp)
- package-ecosystem: "uv"
directory: "/integrations/beads-mcp"
schedule:
interval: "weekly"
open-pull-requests-limit: 5
labels:
- "dependencies"
- "python"
- "mcp"
groups:
beads-mcp-python:
applies-to: version-updates
patterns:
- "*"