mirror of
https://github.com/renovatebot/renovate.git
synced 2026-10-26 23:39:13 +00:00
a88aaed0fa
`ChangeLogSource` looked its tags datasource up from a constructor argument every subclass repeated, and every subclass implemented `getAPIBaseUrl` itself, so the same derivation existed twice: once in the changelog source and once in `PLATFORM_FAMILIES`. Take only the platform in the constructor, read the tags datasource and the API base URL derivation from the table, and drop the five `getAPIBaseUrl` overrides (Forgejo already inherited Gitea's). The GitHub source's token lookup for github.com now asks the base class for the API base URL instead of repeating `https://api.github.com/`; the lookup for a GitHub Enterprise Server host keeps using the source URL. `GiteaChangeLogSource` keeps its optional platform parameter so that `ForgejoChangeLogSource` can still extend it, and now needs no datasource argument. Behaviour changes: none, every derived URL is the same string as before.