nitlanguage
/
nit.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
60dcc10
)
github_merge: do not crash if a user has no public name
author
Jean Privat
<jean@pryen.org>
Tue, 13 May 2014 18:47:04 +0000
(14:47 -0400)
committer
Jean Privat
<jean@pryen.org>
Tue, 13 May 2014 22:44:42 +0000
(18:44 -0400)
Signed-off-by: Jean Privat <jean@pryen.org>
contrib/github_merge.nit
patch
|
blob
|
history
diff --git
a/contrib/github_merge.nit
b/contrib/github_merge.nit
index
12cb829
..
2d8b039
100644
(file)
--- a/
contrib/github_merge.nit
+++ b/
contrib/github_merge.nit
@@
-58,6
+58,10
@@
redef class GithubCurl
var res = new Array[String]
for l in logins do
var u = get_and_check("https://api.github.com/users/{l}").json_as_map
+ if not u.has_key("name") then
+ print "No public name for user {l}"
+ continue
+ end
var r = "{u["name"]} <{u["email"]}>"
res.add r