[github] can use #ID as ID when looking for a particular issue
This commit is contained in:
parent
19ad2d7a32
commit
91688875d4
1 changed files with 2 additions and 2 deletions
|
|
@ -136,10 +136,10 @@ def cmd_github(msg):
|
||||||
li = re.match("^#?([0-9]+)$", msg.args[0])
|
li = re.match("^#?([0-9]+)$", msg.args[0])
|
||||||
ri = re.match("^#?([0-9]+)$", msg.args[-1])
|
ri = re.match("^#?([0-9]+)$", msg.args[-1])
|
||||||
if li is not None:
|
if li is not None:
|
||||||
issue = msg.args[0]
|
issue = li.group(1)
|
||||||
del msg.args[0]
|
del msg.args[0]
|
||||||
elif ri is not None:
|
elif ri is not None:
|
||||||
issue = msg.args[-1]
|
issue = ri.group(1)
|
||||||
del msg.args[-1]
|
del msg.args[-1]
|
||||||
|
|
||||||
repo = " ".join(msg.args)
|
repo = " ".join(msg.args)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue