Extract commit data on all build events if it's available

This commit is contained in:
Piotr Sarnacki 2014-06-26 13:54:08 +02:00
parent 1238caf318
commit 3d45696f9a

View File

@ -55,7 +55,7 @@ unless window.TravisApplication
type = Ember.get(Travis, 'mappings')[name]
if event == 'build:started' && data.build.commit
if name == 'build' && data.build.commit
# TODO: commit should be a sideload record on build, not mixed with it
build = data.build
commit = {