no need to filter here
This commit is contained in:
parent
2ecf7c8a00
commit
2ead1ff49e
|
@ -12,15 +12,11 @@ require 'travis/model'
|
||||||
lastBuild: DS.belongsTo('Travis.Build')
|
lastBuild: DS.belongsTo('Travis.Build')
|
||||||
|
|
||||||
builds: (->
|
builds: (->
|
||||||
id = @get('id')
|
Travis.Build.byRepositoryId @get('id'), event_type: 'push'
|
||||||
Travis.Build.byRepositoryId id, event_type: 'push'
|
|
||||||
Travis.Build.filter (data) -> parseInt(data.get('repository_id')) == id && !data.get('pull_request')
|
|
||||||
).property()
|
).property()
|
||||||
|
|
||||||
pullRequests: (->
|
pullRequests: (->
|
||||||
id = @get('id')
|
Travis.Build.byRepositoryId @get('id'), event_type: 'pull_request'
|
||||||
Travis.Build.byRepositoryId id, event_type: 'pull_request'
|
|
||||||
Travis.Build.filter (data) -> parseInt(data.get('repository_id')) == id && data.get('pull_request')
|
|
||||||
).property()
|
).property()
|
||||||
|
|
||||||
branches: (->
|
branches: (->
|
||||||
|
|
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue
Block a user