Skip to content
Fetching contributors…
Cannot retrieve contributors at this time
18 lines (16 sloc) 673 Bytes
# Find the build status of an open-source project on Travis
# <travis me> sferik/rails_admin - Returns the build status of
module.exports = (robot) ->
robot.respond /travis me (.*)/i, (msg) ->
project = escape(msg.match[1])
.get() (err, res, body) ->
response = JSON.parse(body)
if response.last_build_status == 0
msg.send "Build status for #{project}: Passing"
else if response.last_build_status == 1
msg.send "Build status for #{project}: Failing"
msg.send "Build status for #{project}: Unknown"
Jump to Line
Something went wrong with that request. Please try again.