From 96f22bff8c06b1ea09f63f62edd8a8dacdf35aaa Mon Sep 17 00:00:00 2001 From: Piotr Sarnacki Date: Thu, 17 Dec 2015 13:21:38 +0100 Subject: [PATCH] Get also api builds when clicking on 'show more' --- app/controllers/builds.coffee | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/controllers/builds.coffee b/app/controllers/builds.coffee index 17649392..cb561de7 100644 --- a/app/controllers/builds.coffee +++ b/app/controllers/builds.coffee @@ -52,6 +52,8 @@ Controller = Ember.ArrayController.extend options = { repository_id: id, after_number: number } if type? options.event_type = type.replace(/s$/, '') # poor man's singularize + if options.event_type == 'push' + options.event_type = ['push', 'api'] @store.query('build', options)