diff --git a/lib/datasource/git-refs/index.ts b/lib/datasource/git-refs/index.ts index 81e14e933b..02ce568dd5 100644 --- a/lib/datasource/git-refs/index.ts +++ b/lib/datasource/git-refs/index.ts @@ -1,6 +1,5 @@ import { cache } from '../../util/cache/package/decorator'; import { regEx } from '../../util/regex'; -import * as semver from '../../versioning/semver'; import { Datasource } from '../datasource'; import type { DigestConfig, GetReleasesConfig, ReleaseResult } from '../types'; import { GitDatasource } from './base'; @@ -32,8 +31,7 @@ export class GitRefsDatasource extends Datasource { const refs = rawRefs .filter((ref) => ref.type === 'tags' || ref.type === 'heads') - .map((ref) => ref.value) - .filter((ref) => semver.isVersion(ref)); + .map((ref) => ref.value); const uniqueRefs = [...new Set(refs)]; diff --git a/lib/datasource/git-tags/index.ts b/lib/datasource/git-tags/index.ts index e155a4d2e6..1fbe1e886c 100644 --- a/lib/datasource/git-tags/index.ts +++ b/lib/datasource/git-tags/index.ts @@ -1,6 +1,5 @@ import { cache } from '../../util/cache/package/decorator'; import { regEx } from '../../util/regex'; -import * as semver from '../../versioning/semver'; import { Datasource } from '../datasource'; import { GitDatasource } from '../git-refs/base'; import type { DigestConfig, GetReleasesConfig, ReleaseResult } from '../types'; @@ -28,7 +27,6 @@ export class GitTagsDatasource extends Datasource { } const releases = rawRefs .filter((ref) => ref.type === 'tags') - .filter((ref) => semver.isVersion(ref.value)) .map((ref) => ({ version: ref.value, gitRef: ref.value,