mirror of
https://github.com/renovatebot/renovate.git
synced 2026-11-02 10:33:39 +00:00
e42c696dce
* 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