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

Commit 6215dde

Browse files
Merge pull request #884 from idio/feature/branch-status
Support for janky-flow
2 parents 80f519b + b0466a1 commit 6215dde

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/scripts/janky.coffee

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -155,8 +155,9 @@ module.exports = (robot) ->
155155

156156
msg.send response
157157

158-
robot.respond /ci status$/i, (msg) ->
159-
get "", {}, (err, statusCode, body) ->
158+
robot.respond /ci status( (\*\/[-_\+\.a-zA-z0-9\/]+))?$/i, (msg) ->
159+
path = if msg.match[2] then "/#{msg.match[2]}" else ""
160+
get path, {}, (err, statusCode, body) ->
160161
if statusCode == 200
161162
msg.send(body)
162163
else

0 commit comments

Comments
 (0)