Browse Source

Use better tag and title

Cheng Zhao 9 years ago
parent
commit
12233d704b
1 changed files with 3 additions and 2 deletions
  1. 3 2
      script/upload.py

+ 3 - 2
script/upload.py

@@ -163,15 +163,16 @@ def create_or_get_release_draft(github, releases, tag, tag_exists):
       return release['id']
 
   if tag_exists:
-    tag += '-do-not-publish-me'
+    tag = 'do-not-publish-me'
   return create_release_draft(github, tag)
 
 
 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')