diff options
author | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2012-01-08 12:20:24 +0200 |
---|---|---|
committer | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2012-01-08 12:20:24 +0200 |
commit | 57ac5fe99fd7c870f1b408ccebbd01960f514636 (patch) | |
tree | 41e30f77e996de6b98a5e0b1c165ecaf30e506ca /app/controllers/hooks_controller.rb | |
parent | 2d3b6375f38ac6e3a14fad93f243c258d74b0331 (diff) | |
download | gitlab-ce-57ac5fe99fd7c870f1b408ccebbd01960f514636.tar.gz |
Procfile added. use foreman start to run gitlabhq
Diffstat (limited to 'app/controllers/hooks_controller.rb')
-rw-r--r-- | app/controllers/hooks_controller.rb | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/app/controllers/hooks_controller.rb b/app/controllers/hooks_controller.rb index 9205a6a6f67..7c5f7631f4e 100644 --- a/app/controllers/hooks_controller.rb +++ b/app/controllers/hooks_controller.rb @@ -29,6 +29,15 @@ class HooksController < ApplicationController end end + def test + @hook = @project.web_hooks.find(params[:id]) + commits = @project.commits(@project.default_branch, nil, 3) + data = @project.web_hook_data(commits.last.id, commits.first.id, "refs/heads/#{@project.default_branch}") + @hook.execute(data) + + redirect_to :back + end + def show @hook = @project.web_hooks.find(params[:id]) end |