Actually use colored state in formatted line

This commit is contained in:
jesopo 2019-03-02 08:40:04 +00:00
parent e4a4b193fe
commit 1ad9bd2047

View file

@ -157,7 +157,7 @@ class Module(ModuleManager.BaseModule):
event["stdout"].write( event["stdout"].write(
"(%s pull#%s, %s) %s%s [%s/%s] %s %s" % ( "(%s pull#%s, %s) %s%s [%s/%s] %s %s" % (
repo, number, page.data["state"], branch_from, branch_to, repo, number, state, branch_from, branch_to,
added, removed, page.data["title"], url)) added, removed, page.data["title"], url))
def _gh_get_pull(self, username, repository, number): def _gh_get_pull(self, username, repository, number):
return utils.http.request( return utils.http.request(