feat(renovate): add a regex manager for apm ref: pins #496

Open
opened 2026-12-01 20:16:37 +00:00 by Claude · 0 comments
Owner

Part of #194

Problem

Once the skills-source dependencies are pinned with ref: <plugin>-v<x.y.z>, nothing proposes newer releases. Renovate's built-in apm manager cannot help: it extracts only string entries and silently drops object-form ones, and this repo uses the object form because apm cannot resolve a subdirectory from the string form on this host.

Out of scope: lock regeneration (separate issue) and the gate allowance (separate issue). This issue only has to propose the right ref: change.

Proposal

Add a customManagers entry of type regex, matched on apm.yml (custom.regex is already in enabledManagers):

  • One match string for the key order git, path, ref. It captures packageName from the git: URL, depName from the plugin name in path: plugins/<name>, and currentValue as only the version digits after <plugin>-v, so the prefix stays in the file and no auto-replace template is needed.
  • Datasource git-tags, versioning semver.
  • An extract-version template that scopes each lookup to that plugin's own tags: ^{{{depName}}}-v(?<version>\d+\.\d+\.\d+)$. If templating from depName does not work at the pinned Renovate, fall back to one entry per plugin with a literal prefix.
  • automerge: false, set explicitly, because the global default is automerge on (#208).
  • Add a git-tags hostRule for the host only if the dry run shows a failed lookup. The source repo is public.

Acceptance criteria

  • renovate --platform=local at the Renovate version pinned in the Renovate workflow, with the three pins temporarily rolled back to older tags (git git-v1.3.8, mattpocock mattpocock-v0.4.0, plan plan-v0.4.0), proposes the newest same-prefix tag for each. Check: the debug log, with the excerpt pasted on this issue.
  • No cross-prefix proposal appears; for example gitea-v* is never proposed for git. Check: same log.
  • The proposed change touches only the version digits of each ref: line. Check: the log's proposed diff.
  • The rule sets automerge: false, and the renovate.json description is updated. Check: read the config.
  • The issue records which form was used (templated extract-version, or one entry per plugin) and whether a hostRule was needed.
Part of #194 ## Problem Once the skills-source dependencies are pinned with `ref: <plugin>-v<x.y.z>`, nothing proposes newer releases. Renovate's built-in `apm` manager cannot help: it extracts only string entries and silently drops object-form ones, and this repo uses the object form because apm cannot resolve a subdirectory from the string form on this host. Out of scope: lock regeneration (separate issue) and the gate allowance (separate issue). This issue only has to propose the right `ref:` change. ## Proposal Add a `customManagers` entry of type regex, matched on `apm.yml` (`custom.regex` is already in `enabledManagers`): - One match string for the key order `git`, `path`, `ref`. It captures `packageName` from the `git:` URL, `depName` from the plugin name in `path: plugins/<name>`, and `currentValue` as **only the version digits** after `<plugin>-v`, so the prefix stays in the file and no auto-replace template is needed. - Datasource `git-tags`, versioning `semver`. - An extract-version template that scopes each lookup to that plugin's own tags: `^{{{depName}}}-v(?<version>\d+\.\d+\.\d+)$`. If templating from `depName` does not work at the pinned Renovate, fall back to one entry per plugin with a literal prefix. - `automerge: false`, set explicitly, because the global default is automerge on (#208). - Add a `git-tags` hostRule for the host only if the dry run shows a failed lookup. The source repo is public. ## Acceptance criteria - [ ] `renovate --platform=local` at the Renovate version pinned in the Renovate workflow, with the three pins temporarily rolled back to older tags (git `git-v1.3.8`, mattpocock `mattpocock-v0.4.0`, plan `plan-v0.4.0`), proposes the newest same-prefix tag for each. Check: the debug log, with the excerpt pasted on this issue. - [ ] No cross-prefix proposal appears; for example `gitea-v*` is never proposed for `git`. Check: same log. - [ ] The proposed change touches only the version digits of each `ref:` line. Check: the log's proposed diff. - [ ] The rule sets `automerge: false`, and the `renovate.json` description is updated. Check: read the config. - [ ] The issue records which form was used (templated extract-version, or one entry per plugin) and whether a hostRule was needed.
Claude added the Kind/Enhancement
Priority
Medium
3
Status
Ready for Human
labels 2026-12-01 20:16:37 +00:00
Claude added a new dependency 2026-12-01 20:16:58 +00:00
Claude added a new dependency 2026-12-01 20:16:59 +00:00
Claude added a new dependency 2026-12-01 20:17:00 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Reference: Mortis/Kamino#496