bin/gen_release_notes: automatically commit release notes
authorEric Engestrom <eric@engestrom.ch>
Wed, 8 Jul 2020 23:25:39 +0000 (01:25 +0200)
committerMarge Bot <eric+marge@anholt.net>
Wed, 22 Jul 2020 21:55:58 +0000 (21:55 +0000)
Cc: mesa-stable
Signed-off-by: Eric Engestrom <eric@engestrom.ch>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5833>

bin/gen_release_notes.py
docs/releasing.rst

index c72e440495bfc55c46f78c8847942e771182dd16..716f807b3174b9c288fc30adf83c10b25e07e720 100755 (executable)
@@ -25,6 +25,7 @@ import asyncio
 import datetime
 import os
 import pathlib
 import datetime
 import os
 import pathlib
+import subprocess
 import sys
 import textwrap
 import typing
 import sys
 import textwrap
 import typing
@@ -252,6 +253,10 @@ async def main() -> None:
         except:
             print(exceptions.text_error_template().render())
 
         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()
 
 if __name__ == "__main__":
     loop = asyncio.get_event_loop()
index b7a4af3be152050b61da25812d80859094f38755..529dcd62d44e46675e5ae3d26462f7237dd85da6 100644 (file)
@@ -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
 
 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,
 is add the sha256 sums.
 
 Increment the version contained in the file VERSION at Mesa's top-level,