From 8890cb3b7b9f56922fb0e33e24da0cc5e02662f0 Mon Sep 17 00:00:00 2001 From: hvadehra Date: Mon, 19 Jan 2026 16:31:19 +0530 Subject: [PATCH] Add provenance info to release notes --- scripts/release.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/scripts/release.py b/scripts/release.py index 61d1928..0ed464c 100644 --- a/scripts/release.py +++ b/scripts/release.py @@ -46,14 +46,15 @@ def main(): help='Output from create_java_tools_release.sh') opts = parser.parse_args() - artifacts = json.loads(opts.artifacts)["artifacts"] + release_info = json.loads(opts.artifacts) + artifacts = release_info["artifacts"] relnotes = "To use this java_tools release, add to your WORKSPACE file the definitions: \n```py" for platform in artifacts: relnotes += generate_release_info(platform, artifacts[platform]) download_file(artifacts[platform]["mirror_url"]) - relnotes += "\n```" + relnotes += "\n```\nThis Java tools version was built from http://github.com/bazelbuild/bazel/commit/" + release_info["source_revision"] with open('relnotes.txt', 'w') as f: f.write(relnotes)