Skip to content
Snippets Groups Projects
Unverified Commit 2abed274 authored by Benjamin De Troch's avatar Benjamin De Troch Committed by GitHub
Browse files

fix(pod): Massage only registry URLs that matched the GitHub regex

parent e23b8fc3
No related branches found
No related tags found
No related merge requests found
......@@ -222,7 +222,6 @@ export class PodDatasource extends Datasource {
const podName = packageName.replace(regEx(/\/.*$/), '');
let baseUrl = registryUrl.replace(regEx(/\/+$/), '');
baseUrl = massageGithubUrl(baseUrl);
// In order to not abuse github API limits, query CDN instead
if (isDefaultRepo(baseUrl)) {
[baseUrl] = this.defaultRegistryUrls;
......@@ -231,6 +230,7 @@ export class PodDatasource extends Datasource {
let result: ReleaseResult | null = null;
const match = githubRegex.exec(baseUrl);
if (match) {
baseUrl = massageGithubUrl(baseUrl);
const { hostURL, account, repo } = match?.groups ?? {};
const opts = { hostURL, account, repo };
result = await this.getReleasesFromGithub(podName, opts);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment