diff options
| author | 2019-01-09 23:02:39 +0000 | |
|---|---|---|
| committer | 2019-01-09 23:02:39 +0000 | |
| commit | bba57337364846cded2e82ccd3b9a50c2786644b (patch) | |
| tree | 34a28e56e4b726388beb4582c781087c942c42d5 /modules/github.py | |
| parent | Add a way to set the default github repo for a channel (github.py) (diff) | |
| signature | ||
Command events don't have `"channel"`, they have `"target"` (github.py)
Diffstat (limited to 'modules/github.py')
| -rw-r--r-- | modules/github.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/github.py b/modules/github.py index dea19961..9feddc48 100644 --- a/modules/github.py +++ b/modules/github.py @@ -55,7 +55,7 @@ class Module(ModuleManager.BaseModule): @utils.hook("received.command.ghissue", min_args=1) def github_issue(self, event): username, repository, number = self._parse_ref( - event["channel"], event["args_split"][0]) + event["target"], event["args_split"][0]) page = utils.http.request( API_ISSUE_URL % (username, repository, number), @@ -71,7 +71,7 @@ class Module(ModuleManager.BaseModule): @utils.hook("received.command.ghpull", min_args=1) def github_pull(self, event): username, repository, number = self._parse_ref( - event["channel"], event["args_split"][0]) + event["target"], event["args_split"][0]) page = utils.http.request( API_PULL_URL % (username, repository, number), |
