mirror of
https://github.com/renovatebot/renovate.git
synced 2025-01-14 16:46:25 +00:00
chore(bazel): Log non-https URLs for git_repository
(#20467)
This commit is contained in:
parent
91822a60cb
commit
1dad5645e1
1 changed files with 5 additions and 0 deletions
|
@ -1,5 +1,6 @@
|
|||
import parseGithubUrl from 'github-url-from-git';
|
||||
import { z } from 'zod';
|
||||
import { logger } from '../../../../logger';
|
||||
import { regEx } from '../../../../util/regex';
|
||||
import { GithubReleasesDatasource } from '../../../datasource/github-releases';
|
||||
import type { PackageDependency } from '../../types';
|
||||
|
@ -9,6 +10,10 @@ const githubUrlRegex = regEx(
|
|||
);
|
||||
|
||||
function githubPackageName(input: string): string | undefined {
|
||||
// istanbul ignore if
|
||||
if (!input.startsWith('https://')) {
|
||||
logger.once.info({ url: input }, `Bazel: non-https git_repository URL`);
|
||||
}
|
||||
return parseGithubUrl(input)?.match(githubUrlRegex)?.groups?.packageName;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue