Skip to content

Include minor bumps in renovate.json auto-merge rule #5

@yukimemi

Description

@yukimemi

Summary

The renovate.json template currently auto-merges only patch, pin, and digest updates:

{
  "description": "Auto-merge patch / pin / digest bumps once CI passes",
  "matchUpdateTypes": ["patch", "pin", "digest"],
  "automerge": true
}

Consider broadening this to also include minor so that minor crate bumps auto-merge once CI passes.

Motivation

In consumer repos (e.g. rvpm) minor Renovate PRs pile up and require manual merging even though CI is green. Broadening the rule to minor reduces this maintenance load.

Prerequisite for consumer repos

For auto-merge to actually fire, the consumer repo needs:

  1. allow_auto_merge: true at the repo level (GitHub setting)
  2. Branch protection on main with required status checks

These are set up at the consumer-repo level (e.g. rvpm now has both), not in the template. The template change is just to opt minor bumps into automerge — it won't have any effect on repos that haven't met the prerequisites above.

Caveat: 0.x crates

For pre-1.0 Rust crates (e.g. reqwest 0.13.x), a SemVer "minor" bump is effectively breaking. Two options:

  • Accept the risk (CI catches most regressions).
  • Add an exclusion rule for crates whose current version starts with 0. so they stay manual.

The simpler option is fine if CI coverage is solid; otherwise the exclusion is worth adding.

Proposed change

{
  "description": "Auto-merge minor / patch / pin / digest bumps once CI passes",
  "matchUpdateTypes": ["minor", "patch", "pin", "digest"],
  "automerge": true
}

Context

Originally tried to apply this directly in rvpm, but renovate.json is kata-managed from this template — local edits would be reverted on the next kata apply. Filing here so the change can be made at the source.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions