Commit 1bc0bd32444feb8d571b6d95a2bede2fb67bb951

Authored by Abhi Devireddy
1 parent eb7bbedb

Adapt to new web_hook_data method

Uses the first key that the user has for testing post receive hook.
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