Fix release title

This commit is contained in:
Cheng Zhao 2015-12-08 10:42:51 +08:00
parent c3f7f2447c
commit c63a8c944b

View file

@ -174,11 +174,10 @@ def create_or_get_release_draft(github, releases, tag, tag_exists):
def create_release_draft(github, tag):
name = '{0} {1}'.format(PROJECT_NAME, tag)
if os.environ.has_key('CI'):
name = '{0} pending draft'.format(PROJECT_NAME)
body = '(placeholder)'
else:
name = '{0} {1}'.format(PROJECT_NAME, tag)
body = get_text_with_editor(name)
if body == '':
sys.stderr.write('Quit due to empty release note.\n')