Skip to content
Snippets Groups Projects
Unverified Commit c479b213 authored by andaryjo's avatar andaryjo Committed by GitHub
Browse files

feat(datasource/custom): add `currentValue` to template metadata (#27038)

parent 9bfacc08
No related branches found
No related tags found
No related merge requests found
......@@ -16,6 +16,7 @@ Options:
Available template variables:
- `packageName`
- `currentValue`
```json
{
......
......@@ -9,6 +9,7 @@ export function massageCustomDatasourceConfig(
{
customDatasources,
packageName,
currentValue,
registryUrl: defaultRegistryUrl,
}: GetReleasesConfig,
): Required<CustomDatasourceConfig> | null {
......@@ -19,7 +20,7 @@ export function massageCustomDatasourceConfig(
);
return null;
}
const templateInput = { packageName };
const templateInput = { packageName, currentValue };
const registryUrlTemplate =
defaultRegistryUrl ?? customDatasource.defaultRegistryUrlTemplate;
......
......@@ -27,6 +27,7 @@ export interface GetReleasesConfig {
datasource?: string;
packageName: string;
registryUrl?: string;
currentValue?: string;
}
export interface GetPkgReleasesConfig {
......@@ -37,6 +38,7 @@ export interface GetPkgReleasesConfig {
additionalRegistryUrls?: string[];
datasource: string;
packageName: string;
currentValue?: string;
versioning?: string;
extractVersion?: string;
versionCompatibility?: string;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment