Skip to content

Commit

Permalink
fix(sbt-package): Don't reject Maven packages (renovatebot#31842)
Browse files Browse the repository at this point in the history
  • Loading branch information
zharinov authored Oct 8, 2024
1 parent c5dfee3 commit e86c553
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions lib/modules/datasource/sbt-package/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,10 @@ import { MAVEN_REPO } from '../maven/common';
import { downloadHttpProtocol } from '../maven/util';
import type {
GetReleasesConfig,
PostprocessReleaseConfig,
PostprocessReleaseResult,
RegistryStrategy,
Release,
ReleaseResult,
} from '../types';
import { extractPageLinks, getLatestVersion } from './util';
Expand Down Expand Up @@ -217,4 +220,13 @@ export class SbtPackageDatasource extends MavenDatasource {
);
return null;
}

// istanbul ignore next: to be rewritten
override async postprocessRelease(
config: PostprocessReleaseConfig,
release: Release,
): Promise<PostprocessReleaseResult> {
const mavenResult = await super.postprocessRelease(config, release);
return mavenResult === 'reject' ? release : mavenResult;
}
}

0 comments on commit e86c553

Please sign in to comment.