projects
/
platform
/
framework
/
web
/
crosswalk-tizen.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
33c509b
)
:lipstick: Find the release even when commit isn't tagged.
author
Cheng Zhao
<zcbenz@gmail.com>
Thu, 26 Sep 2013 11:54:28 +0000
(19:54 +0800)
committer
Cheng Zhao
<zcbenz@gmail.com>
Thu, 26 Sep 2013 11:54:28 +0000
(19:54 +0800)
script/upload.py
patch
|
blob
|
history
diff --git
a/script/upload.py
b/script/upload.py
index
cf6b655
..
9cfba99
100755
(executable)
--- a/
script/upload.py
+++ b/
script/upload.py
@@
-69,9
+69,11
@@
def dist_newer_than_head():
def create_or_get_release_draft(github, tag):
+ name = 'atom-shell %s' % tag
releases = github.repos(ATOM_SHELL_REPO).releases.get()
for release in releases:
- if release['tag_name'] == tag:
+ # The untagged commit doesn't have a matching tag_name, so also check name.
+ if release['tag_name'] == tag or release['name'] == name:
return release['id']
return create_release_draft(github, tag)