Skip to content
Snippets Groups Projects
Commit 1bc0bd32 authored by Abhi Devireddy's avatar Abhi Devireddy
Browse files

Adapt to new web_hook_data method

Uses the first key that the user has for testing post receive hook.
parent eb7bbedb
No related branches found
No related tags found
No related merge requests found
Loading
@@ -32,7 +32,7 @@ class HooksController < ApplicationController
Loading
@@ -32,7 +32,7 @@ class HooksController < ApplicationController
def test def test
@hook = @project.web_hooks.find(params[:id]) @hook = @project.web_hooks.find(params[:id])
commits = @project.commits(@project.default_branch, nil, 3) commits = @project.commits(@project.default_branch, nil, 3)
data = @project.web_hook_data(commits.last.id, commits.first.id, "refs/heads/#{@project.default_branch}") data = @project.web_hook_data(commits.last.id, commits.first.id, "refs/heads/#{@project.default_branch}", current_user.keys.first.identifier)
@hook.execute(data) @hook.execute(data)
   
redirect_to :back redirect_to :back
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment