diff options
author | Eric Engestrom <eric@engestrom.ch> | 2020-05-07 00:20:46 +0200 |
---|---|---|
committer | Marge Bot <eric+marge@anholt.net> | 2020-05-13 21:35:24 +0000 |
commit | 445e559e35ae3151d7587f61310ec0fc25c90982 (patch) | |
tree | ee6b45c24762992793204923b676f1609bf0f059 /bin | |
parent | ae26149e2e9ccac54d64ded9a9c0a8ae84cfd300 (diff) | |
download | mesa-445e559e35ae3151d7587f61310ec0fc25c90982.tar.gz |
post_version.py: stop adding release candidates to the index and relnotes
Closes: https://gitlab.freedesktop.org/mesa/mesa/issues/2870
Signed-off-by: Eric Engestrom <eric@engestrom.ch>
Reviewed-by: Dylan Baker <dylan@pnwbakers.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4929>
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/post_version.py | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/bin/post_version.py b/bin/post_version.py index 446fae9880b..c55309d9387 100755 --- a/bin/post_version.py +++ b/bin/post_version.py @@ -134,12 +134,16 @@ def main() -> None: parser.add_argument('version', help="The released version.") args = parser.parse_args() - update_index(args.version) - update_release_notes(args.version) update_calendar(args.version) + done = 'update calendar' + + if not is_release_candidate(args.version): + update_index(args.version) + update_release_notes(args.version) + done += ', add news item, and link releases notes' + subprocess.run(['git', 'commit', '-m', - 'docs: update calendar, add news item, and link releases ' - f'notes for {args.version}']) + f'docs: {done} for {args.version}']) if __name__ == "__main__": |