rpartition (instead of partition) #number for github issues/pull, so that we
don't have to specify "#" when we're got a default repo (github.py)
This commit is contained in:
parent
55b61649f4
commit
86810290f7
1 changed files with 1 additions and 1 deletions
|
@ -40,7 +40,7 @@ COMMENT_ACTIONS = {
|
|||
"help": "Set the default github repo for the current channel"})
|
||||
class Module(ModuleManager.BaseModule):
|
||||
def _parse_ref(self, channel, ref):
|
||||
repo, _, number = ref.partition("#")
|
||||
repo, _, number = ref.rpartition("#")
|
||||
if not repo:
|
||||
repo = channel.get_setting("github-default-repo", None)
|
||||
|
||||
|
|
Loading…
Reference in a new issue