Commit 5be94f4b67ef124aae9723d715f61b5c568e14d6

Authored by Dmitriy Zaporozhets
2 parents eb7bbedb 1bc0bd32

Merge pull request #521 from abhid/testing-post-receive-hook

Adapt to new web_hook_data method. fixes #509
Showing 1 changed file with 1 additions and 1 deletions   Show diff stats
app/controllers/hooks_controller.rb
@@ -32,7 +32,7 @@ class HooksController < ApplicationController @@ -32,7 +32,7 @@ class HooksController < ApplicationController
32 def test 32 def test
33 @hook = @project.web_hooks.find(params[:id]) 33 @hook = @project.web_hooks.find(params[:id])
34 commits = @project.commits(@project.default_branch, nil, 3) 34 commits = @project.commits(@project.default_branch, nil, 3)
35 - data = @project.web_hook_data(commits.last.id, commits.first.id, "refs/heads/#{@project.default_branch}") 35 + data = @project.web_hook_data(commits.last.id, commits.first.id, "refs/heads/#{@project.default_branch}", current_user.keys.first.identifier)
36 @hook.execute(data) 36 @hook.execute(data)
37 37
38 redirect_to :back 38 redirect_to :back