@@ -89,7 +89,7 @@ module.exports = (robot) ->
89
89
if statusCode == 200
90
90
msg .send body
91
91
else
92
- msg .reply " can't help you right now. "
92
+ msg .reply " Unable to fetch help. Got HTTP status #{ statusCode } "
93
93
94
94
robot .respond / ci build ([-_\. 0-9a-zA-Z ] + )(\/ ([-_\+\. a-zA-z0-9 \/ ] + ))? / i , (msg ) ->
95
95
app = msg .match [1 ]
@@ -102,7 +102,7 @@ module.exports = (robot) ->
102
102
response = body
103
103
else
104
104
console .log body
105
- response = " Can't go HAM on #{ app} /#{ branch} , shit's being weird."
105
+ response = " Can't go HAM on #{ app} /#{ branch} , shit's being weird. Got HTTP status #{ statusCode } "
106
106
107
107
msg .send response
108
108
@@ -118,7 +118,7 @@ module.exports = (robot) ->
118
118
if statusCode == 201
119
119
msg .reply body
120
120
else
121
- msg .reply " Error F7U12: Can't Setup."
121
+ msg .reply " Can't Setup. Make sure I have access to it. Expected HTTP status 201, got #{ statusCode } "
122
122
123
123
robot .respond / ci toggle ([-_\. 0-9a-zA-Z ] + )/ i , (msg ) ->
124
124
app = msg .match [1 ]
@@ -127,7 +127,7 @@ module.exports = (robot) ->
127
127
if statusCode == 200
128
128
msg .send body
129
129
else
130
- msg .reply " failed to flip the flag. Sorry."
130
+ msg .reply " Failed to flip the flag. Sorry. Got HTTP status #{ statusCode } "
131
131
132
132
robot .respond / ci set room ([-_0-9a-zA-Z \. ] + ) (. * )$ / i , (msg ) ->
133
133
repo = msg .match [1 ]
@@ -136,7 +136,7 @@ module.exports = (robot) ->
136
136
if [404 , 403 , 200 ].indexOf (statusCode) > - 1
137
137
msg .send body
138
138
else
139
- msg .send " you broke everything "
139
+ msg .send " I couldn't update the room. Got HTTP status #{ statusCode } "
140
140
141
141
robot .respond / ci rooms$ / i , (msg ) ->
142
142
get " rooms" , { }, (err , statusCode , body ) ->
@@ -160,7 +160,7 @@ module.exports = (robot) ->
160
160
if statusCode == 200
161
161
msg .send (body)
162
162
else
163
- msg .send (" who knows " )
163
+ msg .send (" Couldn't get status. Got HTTP status #{ statusCode } " )
164
164
165
165
robot .respond / ci status (-v )? ([-_\. 0-9a-zA-Z ] + )(\/ ([-_\+\. a-zA-z0-9 \/ ] + ))? / i , (msg ) ->
166
166
app = msg .match [2 ]
0 commit comments