mirror of
https://github.com/renovatebot/renovate.git
synced 2025-01-12 15:06:27 +00:00
fix: don't semver filter git-refs and git-tags (#13043)
Closes #13034 Co-authored-by: Michael Kriese <michael.kriese@visualon.de>
This commit is contained in:
parent
bcea3254ad
commit
eeedadede7
2 changed files with 1 additions and 5 deletions
|
@ -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)];
|
||||
|
||||
|
|
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue