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..047ca876 100644 --- a/server/app/views/commit.html +++ b/server/app/views/commit.html @@ -19,9 +19,11 @@
+ commit {{ commit.sha | shortHash}} to {{ commit.branch }} branch +
commit {{ commit.sha | shortHash}} to {{ commit.branch }} branch @@ -35,6 +37,13 @@