Skip to content

Commit 4b28ec3

Browse files
committed
Add provenance info to release notes
1 parent b9e9154 commit 4b28ec3

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

scripts/release.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,14 +46,15 @@ def main():
4646
help='Output from create_java_tools_release.sh')
4747
opts = parser.parse_args()
4848

49-
artifacts = json.loads(opts.artifacts)["artifacts"]
49+
release_info = json.loads(opts.artifacts)
50+
artifacts = release_info["artifacts"]
5051

5152
relnotes = "To use this java_tools release, add to your WORKSPACE file the definitions: \n```py"
5253
for platform in artifacts:
5354
relnotes += generate_release_info(platform, artifacts[platform])
5455
download_file(artifacts[platform]["mirror_url"])
5556

56-
relnotes += "\n```"
57+
relnotes += "\n```\nThis Java tools version was built from http://github.com/bazelbuild/bazel/commit/" + release_info["source_revision"]
5758
with open('relnotes.txt', 'w') as f:
5859
f.write(relnotes)
5960

0 commit comments

Comments
 (0)