nitlanguage
/
nit.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
pep8analysis: remove old-style accessors in the AST
[nit.git]
/
contrib
/
github_merge.nit
diff --git
a/contrib/github_merge.nit
b/contrib/github_merge.nit
index
2d8b039
..
3a056ad
100644
(file)
--- a/
contrib/github_merge.nit
+++ b/
contrib/github_merge.nit
@@
-36,7
+36,12
@@
redef class GithubCurl
prm["statuses"] = statuses
print "{prm["title"]}: by {prm["user"].json_as_map["login"]} (# {prm["number"]})"
print "\tmergable: {prm["mergeable"]}"
prm["statuses"] = statuses
print "{prm["title"]}: by {prm["user"].json_as_map["login"]} (# {prm["number"]})"
print "\tmergable: {prm["mergeable"]}"
- print "\tstatus: {prm["statuses"].json_as_a[0].json_as_map["state"]}"
+ var st = prm["statuses"].json_as_a
+ if not st.is_empty then
+ print "\tstatus: {st[0].json_as_map["state"]}"
+ else
+ print "\tstatus: not tested"
+ end
return prm
end
return prm
end