Change !gh to be an alias of !github (github.py)
This commit is contained in:
parent
598fcb80b9
commit
7e85197d47
1 changed files with 2 additions and 1 deletions
|
@ -102,7 +102,8 @@ class Module(ModuleManager.BaseModule):
|
||||||
else:
|
else:
|
||||||
event["stderr"].write("Could not find pull request")
|
event["stderr"].write("Could not find pull request")
|
||||||
|
|
||||||
@utils.hook("received.command.gh", min_args=1)
|
@utils.hook("received.command.gh", alias_of="github")
|
||||||
|
@utils.hook("received.command.github", min_args=1)
|
||||||
def github(self, event):
|
def github(self, event):
|
||||||
username, repository, number = self._parse_ref(
|
username, repository, number = self._parse_ref(
|
||||||
event["target"], event["args_split"][0])
|
event["target"], event["args_split"][0])
|
||||||
|
|
Loading…
Reference in a new issue