diff --git a/lib/modules/datasource/bazel/__fixtures__/metadata-no-yanked-versions.json b/lib/modules/datasource/bazel/__fixtures__/metadata-no-yanked-versions.json index 2bbf5b1186fc61bc784ebb3800ef76b017870fd8..4185ec2d0c792b2721db93c1e6800bc8f6613ea8 100644 --- a/lib/modules/datasource/bazel/__fixtures__/metadata-no-yanked-versions.json +++ b/lib/modules/datasource/bazel/__fixtures__/metadata-no-yanked-versions.json @@ -1,4 +1,5 @@ { + "homepage": "https://github.com/foo/bar", "versions": [ "0.14.8", "0.14.9", diff --git a/lib/modules/datasource/bazel/index.spec.ts b/lib/modules/datasource/bazel/index.spec.ts index f594d09fae254677fb1c88c9e8e9042c9b3b1523..356743db17292fd77017253d2dad940627e7ce29 100644 --- a/lib/modules/datasource/bazel/index.spec.ts +++ b/lib/modules/datasource/bazel/index.spec.ts @@ -58,6 +58,7 @@ describe('modules/datasource/bazel/index', () => { { version: '0.15.0' }, { version: '0.16.0' }, ], + sourceUrl: 'https://github.com/foo/bar', }); }); diff --git a/lib/modules/datasource/bazel/index.ts b/lib/modules/datasource/bazel/index.ts index a705a304263eda79bacf5c4fd4b8a84098a1bb79..277f08f640a35c5d5795322a1d62fa24b2091d3d 100644 --- a/lib/modules/datasource/bazel/index.ts +++ b/lib/modules/datasource/bazel/index.ts @@ -57,6 +57,9 @@ export class BazelDatasource extends Datasource { } return release; }); + if (metadata.homepage) { + result.homepage = metadata.homepage; + } } catch (err) { // istanbul ignore else: not testable with nock if (err instanceof HttpError) { diff --git a/lib/modules/datasource/bazel/schema.ts b/lib/modules/datasource/bazel/schema.ts index 4315d260c4c93ac52cf9f341af6520eea2da8f98..6fe7245a574b9ba539521a568716950b5caf5514 100644 --- a/lib/modules/datasource/bazel/schema.ts +++ b/lib/modules/datasource/bazel/schema.ts @@ -1,6 +1,7 @@ import { z } from 'zod'; export const BazelModuleMetadata = z.object({ + homepage: z.string().optional().nullable(), versions: z.array(z.string()), yanked_versions: z.record(z.string(), z.string()), });