OSDN Git Service
(root)
/
wvm
/
gitlab.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
eb7bbed
)
Adapt to new web_hook_data method
author
Abhi Devireddy
<abhi@devireddy.com>
Wed, 7 Mar 2012 04:26:39 +0000
(22:26 -0600)
committer
Abhi Devireddy
<abhi@devireddy.com>
Wed, 7 Mar 2012 04:26:39 +0000
(22:26 -0600)
Uses the first key that the user has for testing post receive hook.
app/controllers/hooks_controller.rb
patch
|
blob
|
history
diff --git
a/app/controllers/hooks_controller.rb
b/app/controllers/hooks_controller.rb
index
7c5f763
..
72da6f9
100644
(file)
--- a/
app/controllers/hooks_controller.rb
+++ b/
app/controllers/hooks_controller.rb
@@
-32,7
+32,7
@@
class HooksController < ApplicationController
def test
@hook = @project.web_hooks.find(params[:id])
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)
redirect_to :back