Properly normalized data for job:received pusher event

This commit is contained in:
Piotr Sarnacki 2015-01-22 19:59:39 +01:00
parent 584157dba7
commit 4d78f232c3

View File

@ -86,7 +86,7 @@ $.extend Travis.Pusher.prototype,
switch event
when 'build:started', 'build:finished'
data
when 'job:created', 'job:started', 'job:requeued', 'job:finished', 'job:log', 'job:canceled'
when 'job:created', 'job:started', 'job:requeued', 'job:finished', 'job:log', 'job:canceled', 'job:received'
data.queue = data.queue.replace('builds.', '') if data.queue
{ job: data }
when 'worker:added', 'worker:updated', 'worker:removed'