Skip to content
Snippets Groups Projects
Unverified Commit 65c0561a authored by Dean Lindqvist Todevski's avatar Dean Lindqvist Todevski Committed by GitHub
Browse files

feat(bazel): set sourceUrl for Bazel modules (#33840)

parent bc1b1e6f
No related branches found
No related tags found
No related merge requests found
{
"homepage": "https://github.com/foo/bar",
"versions": [
"0.14.8",
"0.14.9",
......
......@@ -58,6 +58,7 @@ describe('modules/datasource/bazel/index', () => {
{ version: '0.15.0' },
{ version: '0.16.0' },
],
sourceUrl: 'https://github.com/foo/bar',
});
});
......
......@@ -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) {
......
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()),
});
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