From 4b07aedf6701e922c9204e84d7e5d2e454eff4ad Mon Sep 17 00:00:00 2001 From: Kirill Zaitsev Date: Mon, 8 Sep 2014 02:11:20 +0400 Subject: [PATCH 1/2] Add ability to rebuild commit --- server/app/scripts/app.js | 3 +++ server/app/views/commit.html | 7 +++++++ 2 files changed, 10 insertions(+) diff --git a/server/app/scripts/app.js b/server/app/scripts/app.js index 42d4b993..6db21490 100644 --- a/server/app/scripts/app.js +++ b/server/app/scripts/app.js @@ -260,6 +260,9 @@ app.controller("CommitController", function($scope, $http, $routeParams, stdout, console.log(data); }); + $scope.rebuildCommit = function() { + $http({method: 'POST', url: '/v1/repos/'+remote+'/'+owner+'/'+name+'/'+'branches/'+branch+'/'+'commits/'+commit+'/?action=rebuild' }) + } }); \ No newline at end of file diff --git a/server/app/views/commit.html b/server/app/views/commit.html index c78bdfbb..fe22ad37 100644 --- a/server/app/views/commit.html +++ b/server/app/views/commit.html @@ -35,6 +35,13 @@