renovate/lib/modules/datasource/adoptium-java/common.ts
Rhys Arkins 143c9a6751 refactor: rename lookupName -> packageName (#14494)
Renames `lookupName` to be `packageName`.

BREAKING CHANGE: Use `packageName` instead of `lookupName` if interacting with Renovate datasources directly.
2022-03-04 09:04:02 +01:00

15 lines
328 B
TypeScript

// Api page size limit 50
export const pageSize = 50;
export const defaultRegistryUrl = 'https://api.adoptium.net/';
export const datasource = 'adoptium-java';
export function getImageType(packageName: string): string {
switch (packageName) {
case 'java-jre':
return 'jre';
default:
return 'jdk';
}
}