Load commit data also from job:created

This commit is contained in:
Piotr Sarnacki 2015-01-19 15:59:22 +01:00
parent bc53d98b2a
commit 8a51ebcbcf

View File

@ -70,6 +70,9 @@ unless window.TravisApplication
type = Ember.get(Travis, 'mappings')[name]
if name == 'job' && data.job?.commit
@loadOrMerge(Travis.Commit, data.job.commit)
if name == 'build' && data.build?.commit
# TODO: commit should be a sideload record on build, not mixed with it
build = data.build