renovate: migrate the config and keep its comments (#11570)

Renovate moved the Dependency Dashboard options into an object:
dependencyDashboard: true becomes { enabled: true }.

Its config migration rewrites renovate.json5 with JSON5.stringify,
which drops every comment. The file now uses that layout with the
comments kept: without the comment lines it is byte-identical to the
migrated config, so a future migration PR shows only the comments it
would drop.

Two comment fixes: the depName note drops the fork-sync remark, and
rule 6 allows the trailing "/" that lib/tools/shellfmt.sh uses.

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Igor Velkov <325961+iav@users.noreply.github.com>
This commit is contained in:
renovate[bot] 2026-11-26 21:54:56 +02:00 • committed by GitHub
parent 31fd6253ee
commit a10b2e8681
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1,22 +1,31 @@
{
$schema: "https://docs.renovatebot.com/renovate-schema.json",
extends: ["config:recommended"],
$schema: 'https://docs.renovatebot.com/renovate-schema.json',
extends: [
'config:recommended',
],
// Run ONLY our custom regex manager. We deliberately do NOT enable the
// github-actions / pip managers — those are owned by Dependabot
// (.github/dependabot.yml); no point duplicating it.
enabledManagers: ["custom.regex"],
dependencyDashboard: true,
labels: ["dependencies"],
timezone: "Europe/Zagreb",
schedule: ["* 1 * * 6"], // Saturday, 01:00–01:59 Zagreb time
enabledManagers: [
'custom.regex',
],
dependencyDashboard: {
enabled: true,
},
labels: [
'dependencies',
],
timezone: 'Europe/Zagreb',
schedule: [
// Saturday, 01:00–01:59 Zagreb time
'* 1 * * 6',
],
customManagers: [
{
customType: "regex",
managerFilePatterns: ["/^lib/.*\\.sh$/"],
customType: 'regex',
managerFilePatterns: [
'/^lib/.*\\.sh$/',
],
// ════════════════════════════════════════════════════════════════
// HOW TO MAKE A PINNED TOOL VERSION TRACKED BY RENOVATE
// (read THIS, not the regex — humans are bad at reading regexes)
@ -39,10 +48,8 @@
// datasource is forced to github-releases; a leading "v" on the
// upstream tag (v0.11.0) is stripped automatically.
//
// Note: depName comes from the github.com URL that the upstream
// scripts already write — so NO extra "# renovate:" annotation is
// added to those files. That keeps them byte-identical to upstream
// and conflict-free when iav-main is synced.
// Note: depName comes from the github.com URL already on the line,
// so the scripts need no extra "# renovate:" annotation.
//
// ─── STRICT RULES ───────────────────────────────────────────────
// Break ANY of these and the line is SILENTLY dropped: Renovate
@ -78,11 +85,11 @@
// Keep the "# https://…/releases" comment LAST on the line.
//
// 6. The comment must be a single "#" then the canonical URL
// https://github.com/OWNER/REPO/releases :
// https://github.com/OWNER/REPO/releases (a trailing "/" is fine):
// OK # https://github.com/sharkdp/bat/releases
// BAD ## https://… ← double hash kills it
// BAD # http://github.com/… ← must be https
// BAD # see github.com/x/y ← must start https://github.com/ and end /releases
// BAD # see github.com/x/y ← must be https://github.com/OWNER/REPO/releases
//
// 7. To track a NEW tool: (a) write its line in the shape above,
// and (b) add its NAME to the alternation in `matchStrings`.
@ -91,11 +98,11 @@
// separator is [[:blank:]] (space/tab only, NOT \s) so the version
// and its release-URL comment must sit on ONE physical line —
// \s would also cross newlines and could grab an unrelated URL.
"\\b(?:SHELLFMT|SHELLCHECK|ORAS|BATCAT)_VERSION=\\$\\{[A-Z_]+:-(?<currentValue>[0-9][0-9.]*)\\}[[:blank:]]*#[[:blank:]]*https://github\\.com/(?<depName>[^/]+/[^/\\s]+)/releases",
'\\b(?:SHELLFMT|SHELLCHECK|ORAS|BATCAT)_VERSION=\\$\\{[A-Z_]+:-(?<currentValue>[0-9][0-9.]*)\\}[[:blank:]]*#[[:blank:]]*https://github\\.com/(?<depName>[^/]+/[^/\\s]+)/releases',
],
datasourceTemplate: "github-releases",
extractVersionTemplate: "^v?(?<version>.+)$",
versioningTemplate: "semver",
datasourceTemplate: 'github-releases',
extractVersionTemplate: '^v?(?<version>.+)$',
versioningTemplate: 'semver',
},
],
}