Skip to content

Commit

Permalink
fix: Fix timestamps for internalChecksFilter checks (#32204)
Browse files Browse the repository at this point in the history
  • Loading branch information
zharinov authored Oct 29, 2024
1 parent 61aaebd commit d12b94c
Showing 1 changed file with 8 additions and 10 deletions.
18 changes: 8 additions & 10 deletions lib/workers/repository/process/lookup/filter-checks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -65,16 +65,14 @@ export async function filterInternalChecks(
candidateRelease = updatedCandidateRelease;

// Now check for a minimumReleaseAge config
const {
minimumConfidence,
minimumReleaseAge,
releaseTimestamp,
version: newVersion,
updateType,
} = releaseConfig;
if (is.nonEmptyString(minimumReleaseAge) && releaseTimestamp) {
const { minimumConfidence, minimumReleaseAge, updateType } =
releaseConfig;
if (
is.nonEmptyString(minimumReleaseAge) &&
candidateRelease.releaseTimestamp
) {
if (
getElapsedMs(releaseTimestamp) <
getElapsedMs(candidateRelease.releaseTimestamp) <
coerceNumber(toMs(minimumReleaseAge), 0)
) {
// Skip it if it doesn't pass checks
Expand All @@ -94,7 +92,7 @@ export async function filterInternalChecks(
datasource!,
depName!,
currentVersion!,
newVersion,
candidateRelease.version,
updateType!,
)) ?? 'neutral';
// TODO #22198
Expand Down

0 comments on commit d12b94c

Please sign in to comment.