Do not require uploading a tag before publish release.

This commit is contained in:
Cheng Zhao 2013-09-29 15:31:20 +08:00
parent 8b4414345b
commit 87d94ff1ae

View file

@ -108,8 +108,7 @@ def create_release_draft(github, tag):
sys.stderr.write('Quit due to empty release note.\n')
sys.exit(0)
data = dict(tag_name=tag, target_commitish=tag, name=name, body=body,
draft=True)
data = dict(tag_name=tag, name=name, body=body, draft=True)
r = github.repos(ATOM_SHELL_REPO).releases.post(data=data)
return r['id']