Mesa (master): bin/gen_release_notes: automatically commit release notes
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Wed Jul 22 22:21:16 UTC 2020
Module: Mesa
Branch: master
Commit: ae2d0457679dfa6d79faa3009daadd11d6a92f5c
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=ae2d0457679dfa6d79faa3009daadd11d6a92f5c
Author: Eric Engestrom <eric at engestrom.ch>
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 <eric at engestrom.ch>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5833>
---
bin/gen_release_notes.py | 5 +++++
docs/releasing.rst | 2 +-
2 files changed, 6 insertions(+), 1 deletion(-)
diff --git a/bin/gen_release_notes.py b/bin/gen_release_notes.py
index c72e440495b..716f807b317 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
@@ -252,6 +253,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.rst b/docs/releasing.rst
index b7a4af3be15..529dcd62d44 100644
--- a/docs/releasing.rst
+++ b/docs/releasing.rst
@@ -262,7 +262,7 @@ Create release notes for the new release
The release notes are completely generated by the
``bin/gen_release_notes.py`` script. Simply run this script before
-bumping the version, and commit the results. The only thing left to do
+bumping the version. The only thing left to do
is add the sha256 sums.
Increment the version contained in the file VERSION at Mesa's top-level,
More information about the mesa-commit
mailing list