Skip to content

feat: throttle npm:renovate, fix duplicate packageRules key, share presets - #61

Merged
hugoh merged 1 commit into
mainfrom
throttle-npm-renovate
Aug 2, 2026
Merged

feat: throttle npm:renovate, fix duplicate packageRules key, share presets#61
hugoh merged 1 commit into
mainfrom
throttle-npm-renovate

Conversation

@hugoh

@hugoh hugoh commented Aug 2, 2026

Copy link
Copy Markdown
Owner

Summary

  • Pin npm:renovate to an explicit mise version, throttled to weekly via renovate-config's chain-debounce preset (referenced from .renovaterc.json's extends).
  • Fixes a bug from an earlier commit: a duplicate top-level "packageRules" key in .renovaterc.json silently overrode the file's original rules (JSON, not merged presets).
  • Extract the vulnerabilityAlerts block and "major updates" grouping out of go-renovaterc.json in favor of renovate-config's new shared preset fragments — the genuinely different policy (minimumReleaseAge, narrower automerge scope, gomod grouping) stays local.
  • Extract the Copier-owned-files exclusion rules out of template/.renovaterc.json into presets/copier-owned-files.json (reaches the 6 Go consumer repos on their next copier update).
  • Bump the hk-config pin to v1.3.0 and adopt its new Base.renovate module.

Test plan

  • hk check --all passes locally, including renovate_config_validator against all 4 renovate config files

…esets

Pin npm:renovate to an explicit mise version and throttle its updates
to weekly via renovate-config's chain-debounce preset, referenced from
.renovaterc.json's extends array. This also fixes a bug from an earlier
commit: the rule had been added as a second top-level "packageRules"
key, which JSON silently lets the later declaration overwrite, leaving
the file's original go-hk.yml/mise.toml.jinja/pytest rules as the only
ones actually applied.

Also extract the vulnerabilityAlerts block and "major updates"
grouping rule out of go-renovaterc.json in favor of extending
renovate-config's new presets/vulnerability-alerts.json and
presets/major-updates-ungrouped.json fragments, since those were
byte-identical duplicates of renovate-config/default.json. The
genuinely different policy (minimumReleaseAge, narrower automerge
scope, gomod grouping) stays local and unshared.

Extract the Copier-owned-files exclusion rules (hk.pkl, mise.toml) out
of template/.renovaterc.json into presets/copier-owned-files.json, so
the file stamped into Go consumer repos is a two-line extends instead
of inlining ~10 lines of packageRules. Reaches consumers on their next
copier update.

Bump the hk-config pin to v1.3.0 and switch hk.pkl's
renovate_config_validator step to spread in the new Base.renovate
module (overriding its glob locally), instead of hand-rolling the same
check command hk-config now provides as a shared building block.
@hugoh
hugoh enabled auto-merge August 2, 2026 17:05
@hugoh
hugoh merged commit a730820 into main Aug 2, 2026
2 checks passed
@hugoh
hugoh deleted the throttle-npm-renovate branch August 2, 2026 17:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant