Skip to content
This repository was archived by the owner on Jun 8, 2023. It is now read-only.

Commit ee20e52

Browse files
committed
allow pluses in branch names
1 parent 1a84117 commit ee20e52

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/scripts/janky.coffee

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ module.exports = (robot) ->
7373
else
7474
msg.reply "can't help you right now."
7575

76-
robot.respond /ci build ([-_\.0-9a-zA-Z]+)(\/([-_\.a-zA-z0-9\/]+))?/i, (msg) ->
76+
robot.respond /ci build ([-_\.0-9a-zA-Z]+)(\/([-_\+\.a-zA-z0-9\/]+))?/i, (msg) ->
7777
app = msg.match[1]
7878
branch = msg.match[3] || "master"
7979
room_id = msg.message.user.room
@@ -88,7 +88,7 @@ module.exports = (robot) ->
8888

8989
msg.send response
9090

91-
robot.respond /ci setup ([\.\-\/_a-z0-9]+)(\s?([\.\-_a-z0-9]+))?(\s?([\.\-_a-z0-9]+))?/i, (msg) ->
91+
robot.respond /ci setup ([\.\-\/_a-z0-9]+)(\s?([\.\-_a-z0-9]+))?/i, (msg) ->
9292
nwo = msg.match[1]
9393
params = "?nwo=#{nwo}"
9494
if msg.match[3] != undefined
@@ -135,7 +135,7 @@ module.exports = (robot) ->
135135
else
136136
msg.send("who knows")
137137

138-
robot.respond /ci status (-v )?([-_\.0-9a-zA-Z]+)(\/([-_\.a-zA-z0-9\/]+))?/i, (msg) ->
138+
robot.respond /ci status (-v )?([-_\.0-9a-zA-Z]+)(\/([-_\+\.a-zA-z0-9\/]+))?/i, (msg) ->
139139
app = msg.match[2]
140140
count = 5
141141
branch = msg.match[4] || 'master'

0 commit comments

Comments
 (0)