Module: Mesa Branch: staging/20.1 Commit: f44f3cdf17054a0f72aa1324c70be405ab548964 URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=f44f3cdf17054a0f72aa1324c70be405ab548964
Author: Eric Engestrom <[email protected]> Date: Thu Jul 9 01:25:39 2020 +0200 bin/gen_release_notes: automatically commit release notes Cc: mesa-stable Signed-off-by: Eric Engestrom <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5833> (cherry picked from commit ae2d0457679dfa6d79faa3009daadd11d6a92f5c) --- .pick_status.json | 2 +- bin/gen_release_notes.py | 5 +++++ docs/releasing.html | 2 +- 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/.pick_status.json b/.pick_status.json index aa3ff8209e7..0ae0729e54a 100644 --- a/.pick_status.json +++ b/.pick_status.json @@ -625,7 +625,7 @@ "description": "bin/gen_release_notes: automatically commit release notes", "nominated": true, "nomination_type": 0, - "resolution": 0, + "resolution": 1, "master_sha": null, "because_sha": null }, diff --git a/bin/gen_release_notes.py b/bin/gen_release_notes.py index 48e216f80cf..63a79b70be1 100755 --- a/bin/gen_release_notes.py +++ b/bin/gen_release_notes.py @@ -25,6 +25,7 @@ import asyncio import datetime import os import pathlib +import subprocess import sys import textwrap import typing @@ -266,6 +267,10 @@ async def main() -> None: except: print(exceptions.text_error_template().render()) + subprocess.run(['git', 'add', final]) + subprocess.run(['git', 'commit', '-m', + f'docs: add release notes for {this_version}']) + if __name__ == "__main__": loop = asyncio.get_event_loop() diff --git a/docs/releasing.html b/docs/releasing.html index 3d529f889ab..43ae7bcaa03 100644 --- a/docs/releasing.html +++ b/docs/releasing.html @@ -331,7 +331,7 @@ unset VK_ICD_FILENAMES <p> The release notes are completely generated by the <code>bin/gen_release_notes.py</code> script. Simply run this script before -bumping the version, and commit the results. +bumping the version. The only thing left to do is add the sha256 sums. </p> _______________________________________________ mesa-commit mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/mesa-commit
