We still return repository_id in build's payload
This commit is contained in:
parent
3ecbc8f139
commit
88abeb48c0
|
@ -2,7 +2,7 @@ require 'travis/model'
|
||||||
|
|
||||||
@Travis.Build = Travis.Model.extend Travis.DurationCalculations,
|
@Travis.Build = Travis.Model.extend Travis.DurationCalculations,
|
||||||
eventType: DS.attr('string')
|
eventType: DS.attr('string')
|
||||||
repoId: DS.attr('number')
|
repoId: DS.attr('number', key: 'repository_id')
|
||||||
commitId: DS.attr('number')
|
commitId: DS.attr('number')
|
||||||
|
|
||||||
state: DS.attr('string')
|
state: DS.attr('string')
|
||||||
|
@ -14,7 +14,7 @@ require 'travis/model'
|
||||||
startedAt: DS.attr('string', key: 'started_at')
|
startedAt: DS.attr('string', key: 'started_at')
|
||||||
finishedAt: DS.attr('string', key: 'finished_at')
|
finishedAt: DS.attr('string', key: 'finished_at')
|
||||||
|
|
||||||
repo: DS.belongsTo('Travis.Repo')
|
repo: DS.belongsTo('Travis.Repo', key: 'repository_id')
|
||||||
commit: DS.belongsTo('Travis.Commit')
|
commit: DS.belongsTo('Travis.Commit')
|
||||||
jobs: DS.hasMany('Travis.Job', key: 'job_ids')
|
jobs: DS.hasMany('Travis.Job', key: 'job_ids')
|
||||||
|
|
||||||
|
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue
Block a user