Files
renovate/lib/workers
larsf96 e42c696dce refactor(changelog): make release-notes URLs overridable on ChangeLogSource (#45260)
* refactor(changelog): make release-notes URLs overridable on ChangeLogSource

Move the changelog markdown source URL and heading-anchor URL construction
from standalone `project.type` conditionals in `release-notes.ts` into
overridable methods on `ChangeLogSource`:

- `getNotesSourceUrl` (default: `blob`, overridden for bitbucket `src` and
  bitbucket-server `browse`)
- `getReleaseNotesMdAnchorUrl` (default: GitHub-style `#anchor`)

The source instance is threaded from `getChangeLogJSON` through
`addReleaseNotes` into `getReleaseNotesMd`, avoiding a `no-cycle` violation
that a registry lookup inside `release-notes.ts` would cause.

Behavior-neutral prefactor to allow an Azure changelog source to override
the anchor and path conventions without adding more type conditionals.

* fix oxlint finding
2026-08-19 07:50:52 +00:00
..