filter for push and api builds on branches
This commit is contained in:
parent
1d71f943ca
commit
1ba4cf25d0
|
@ -36,7 +36,7 @@ BranchRowComponent = Ember.Component.extend
|
||||||
if @get('auth.signedIn')
|
if @get('auth.signedIn')
|
||||||
options.headers = { Authorization: "token #{@auth.token()}" }
|
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) ->
|
array = response.builds.map( (build) ->
|
||||||
Ember.Object.create(build)
|
Ember.Object.create(build)
|
||||||
)
|
)
|
||||||
|
|
|
@ -3,8 +3,8 @@
|
||||||
{{status-icon status=build.state}}
|
{{status-icon status=build.state}}
|
||||||
|
|
||||||
{{build.last_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>
|
{{request-icon build=build}} <span class="label-align">#{{build.number}}</span>
|
||||||
</div> --}}
|
</div>
|
||||||
{{/link-to}}
|
{{/link-to}}
|
||||||
{{/if}}
|
{{/if}}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user