Commit 1bc0bd32444feb8d571b6d95a2bede2fb67bb951
1 parent
eb7bbedb
Exists in
master
and in
4 other branches
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 | 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 | ... | ... |