Files
stpweb/renovate.json5
T
adamfandClaude Opus 5.5 4530cb8dc4
Test and deploy / test (push) Successful in 28s
Test and deploy / deploy (push) Successful in 31s
Trim comments to the non-obvious why
Drop narration, history and restated-code comments across the repo,
keep short ones for security boundaries, upstream quirks and ordering
constraints, and record the convention in CLAUDE.md.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-24 20:49:03 +00:00

97 lines
2.8 KiB
JSON

// What Renovate updates; how it runs is .gitea/workflows/renovate.yaml.
// Nothing automerges: merging to main is deploying. The CI test job skips the
// Vue build, so check npm PRs with `make check-vue`.
{
$schema: "https://docs.renovatebot.com/renovate-schema.json",
extends: ["config:recommended"],
timezone: "Europe/London",
// Replaces config:recommended's list; .deprecated/ isn't built.
ignorePaths: ["**/node_modules/**", ".deprecated/**"],
minimumReleaseAge: "3 days",
postUpdateOptions: ["gomodTidy"],
customManagers: [
{
// The `docker run` images in the workflows; grouped with the matching
// Dockerfile bases so they move together.
customType: "regex",
managerFilePatterns: ["/^\\.gitea/workflows/[^/]+\\.ya?ml$/"],
matchStrings: ["(?<depName>golang|python|renovate/renovate):(?<currentValue>[0-9][\\w.-]*)"],
datasourceTemplate: "docker",
},
{
// xcaddy plugins; caddy-ratelimit is a commit pin, bumped by hand.
customType: "regex",
managerFilePatterns: ["/^caddy/Dockerfile$/"],
matchStrings: ["--with (?<depName>[\\w./-]+)@(?<currentValue>v[0-9][\\w.-]*)"],
datasourceTemplate: "go",
},
],
packageRules: [
// Built and rolled out by their own repos.
{
matchDatasources: ["docker"],
matchPackageNames: ["adam-french.co.uk/**"],
enabled: false,
},
// A Postgres major needs a dump and restore, so never from a PR.
{
matchDatasources: ["docker"],
matchPackageNames: ["postgres"],
matchUpdateTypes: ["major"],
enabled: false,
},
// Non-majors batched per ecosystem. Before the named groups, since a later
// matching rule wins.
{
matchManagers: ["gomod"],
matchUpdateTypes: ["minor", "patch", "digest"],
groupName: "Go modules (non-major)",
},
{
matchManagers: ["npm"],
matchUpdateTypes: ["minor", "patch"],
groupName: "npm (non-major)",
},
{
matchManagers: ["pip_requirements"],
matchUpdateTypes: ["minor", "patch"],
groupName: "Python packages (non-major)",
},
{
matchPackageNames: ["golang", "go"],
groupName: "Go toolchain",
},
{
matchDatasources: ["docker"],
matchPackageNames: ["python"],
groupName: "Python image",
},
// Builder and runtime must be the same release.
{
matchFileNames: ["caddy/Dockerfile"],
groupName: "Caddy",
},
// Must match @mdit/plugin-katex's own katex minor, or the CSS won't fit the
// HTML. Lift when the plugin moves its range.
{
matchPackageNames: ["katex"],
allowedVersions: "<0.17",
},
// If a bump breaks the build, regenerate on the branch.
{
matchPackageNames: ["github.com/99designs/gqlgen", "github.com/vektah/gqlparser/**"],
groupName: "gqlgen",
},
],
}