cutarelease: add date to release tag comment
This commit is contained in:
parent
cf9258aab7
commit
7f24f0235a
@ -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.
|
||||
|
Reference in New Issue
Block a user