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__":