diff options
| author | 2019-01-10 13:23:32 +0000 | |
|---|---|---|
| committer | 2019-01-10 13:23:32 +0000 | |
| commit | 8da6036894b445f9d4bfb5ce486a05448b480ac1 (patch) | |
| tree | 2438c554f24d2e176392288357b246e218f829e0 /modules/github.py | |
| parent | Show an error if !ghissue or !ghpull doesn't find the specified issue/pr (diff) | |
| signature | ||
Show issue/pr state in !ghissue and !ghpull (github.py)
Diffstat (limited to 'modules/github.py')
| -rw-r--r-- | modules/github.py | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/modules/github.py b/modules/github.py index de1ad5cd..bf4472ac 100644 --- a/modules/github.py +++ b/modules/github.py @@ -64,9 +64,9 @@ class Module(ModuleManager.BaseModule): labels = [label["name"] for label in page.data["labels"]] url = self._short_url(page.data["html_url"]) - event["stdout"].write("(%s/%s issue#%s) %s [%s] %s" % ( - username, repository, number, page.data["title"], - ", ".join(labels), url)) + event["stdout"].write("(%s/%s issue#%s, %s) %s [%s] %s" % ( + username, repository, number, page.data["state"], + page.data["title"], ", ".join(labels), url)) else: event["stderr"].write("Could not find issue") @@ -86,9 +86,9 @@ class Module(ModuleManager.BaseModule): url = self._short_url(page.data["html_url"]) event["stdout"].write( - "(%s/%s pull#%s) [%s/%s] %s→%s - %s %s" % ( - username, repository, number, added, removed, - repo_from, repo_to, page.data["title"], url)) + "(%s/%s pull#%s, %s) [%s/%s] %s→%s - %s %s" % ( + username, repository, number, page.data["state"], + added, removed, repo_from, repo_to, page.data["title"], url)) else: event["stderr"].write("Could not find pull request") |
