diff --git a/server/app/scripts/app.js b/server/app/scripts/app.js index 42d4b9938..6db214902 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 c78bdfbbf..fe22ad374 100644 --- a/server/app/views/commit.html +++ b/server/app/views/commit.html @@ -35,6 +35,13 @@