bin/gen_release_notes: automatically commit release notes
Cc: mesa-stable Signed-off-by: Eric Engestrom <eric@engestrom.ch> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5833>
This commit is contained in:
parent
5f649be7b5
commit
ae2d045767
|
@ -25,6 +25,7 @@ import asyncio
|
||||||
import datetime
|
import datetime
|
||||||
import os
|
import os
|
||||||
import pathlib
|
import pathlib
|
||||||
|
import subprocess
|
||||||
import sys
|
import sys
|
||||||
import textwrap
|
import textwrap
|
||||||
import typing
|
import typing
|
||||||
|
@ -252,6 +253,10 @@ async def main() -> None:
|
||||||
except:
|
except:
|
||||||
print(exceptions.text_error_template().render())
|
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__":
|
if __name__ == "__main__":
|
||||||
loop = asyncio.get_event_loop()
|
loop = asyncio.get_event_loop()
|
||||||
|
|
|
@ -262,7 +262,7 @@ Create release notes for the new release
|
||||||
|
|
||||||
The release notes are completely generated by the
|
The release notes are completely generated by the
|
||||||
``bin/gen_release_notes.py`` script. Simply run this script before
|
``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.
|
is add the sha256 sums.
|
||||||
|
|
||||||
Increment the version contained in the file VERSION at Mesa's top-level,
|
Increment the version contained in the file VERSION at Mesa's top-level,
|
||||||
|
|
Loading…
Reference in New Issue