cutarelease: add date to release tag comment

This commit is contained in:
Trent Mick 2016-02-11 21:33:39 -08:00
parent cf9258aab7
commit 7f24f0235a
1 changed files with 3 additions and 1 deletions

View File

@ -26,6 +26,7 @@ import codecs
import logging
import optparse
import json
import time
@ -159,7 +160,8 @@ def cutarelease(project_name, version_files, dry_run=False):
curr_tags = set(t for t in _capture_stdout(["git", "tag", "-l"]).split('\n') if t)
if not dry_run and version not in curr_tags:
log.info("tag the release")
run('git tag -a "%s" -m "version %s"' % (version, version))
date = time.strftime("%Y-%m-%d")
run('git tag -a "%s" -m "version %s (%s)"' % (version, version, date))
run('git push --tags')
# Optionally release.