Video in progress

Senior 🌿 Git

Renovate or Dependabot opens 30 dependency PRs every week, and the team ignores them. How do you organize this work?

I group the PRs (test libraries in one PR, for example), auto-merge patch and minor updates when CI is green, and review majors separately with an owner. A schedule and a limit on simultaneous PRs reduce the noise.

📖 Answer

30 unclosed PRs are worse than no bot at all: a security update gets lost in that pile too.

A Renovate example:

{
  "extends": ["config:recommended"],
  "schedule": ["before 6am on monday"],
  "prConcurrentLimit": 5,
  "packageRules": [
    { "matchUpdateTypes": ["patch", "minor"], "matchCurrentVersion": "!/^0/", "automerge": true },
    { "matchPackageNames": ["org.junit**", "org.mockito**", "org.assertj**"], "groupName": "test libs" },
    { "matchUpdateTypes": ["major"], "dependencyDashboardApproval": true }
  ]
}

Dependabot also has groups and a schedule, and auto-merge is done through the platform's auto-merge.

There is a catch in a Spring Boot project: many versions are managed through the BOM. Raising Boot updates dozens of libraries together, in a compatible way. I do not let the bot raise a Jackson or Hibernate version separately by overriding it, because then incompatibility shows up when Boot is updated.

Auto-merge only works if you trust the tests. In a project with weak coverage, even a minor update can change behavior. So integration tests first, then automerge.

The organizational side: each week a person on duty looks at the dashboard, and major updates go into the backlog as separate tasks. Security alerts are opened immediately, outside the schedule.

As a measure I track "the age of the oldest open dependency PR". If it goes over a month, the flow is not working.