Commit 5be94f4b67ef124aae9723d715f61b5c568e14d6
Exists in
master
and in
4 other branches
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 | 32 | def test |
33 | 33 | @hook = @project.web_hooks.find(params[:id]) |
34 | 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 | 36 | @hook.execute(data) |
37 | 37 | |
38 | 38 | redirect_to :back | ... | ... |