filter for push and api builds on branches

This commit is contained in:
Lisa P 2015-10-08 15:28:17 +02:00
parent 1d71f943ca
commit 1ba4cf25d0
2 changed files with 3 additions and 3 deletions

View File

@ -36,7 +36,7 @@ BranchRowComponent = Ember.Component.extend
if @get('auth.signedIn')
options.headers = { Authorization: "token #{@auth.token()}" }
$.ajax("#{apiEndpoint}/v3/repo/#{repoId}/builds?branch.name=#{branchName}&limit=5", options).then (response) ->
$.ajax("#{apiEndpoint}/v3/repo/#{repoId}/builds?branch.name=#{branchName}&limit=5&build.event_type=push,api", options).then (response) ->
array = response.builds.map( (build) ->
Ember.Object.create(build)
)

View File

@ -3,8 +3,8 @@
{{status-icon status=build.state}}
{{build.last_build.state}}
{{!-- <div class="dropup--status">
<div class="dropup--status">
{{request-icon build=build}} <span class="label-align">#{{build.number}}</span>
</div> --}}
</div>
{{/link-to}}
{{/if}}