gitlab-org--gitlab-foss/app/contexts/test_hook_context.rb

8 lines
191 B
Ruby
Raw Normal View History

2012-07-31 05:32:49 +00:00
class TestHookContext < BaseContext
def execute
hook = project.hooks.find(params[:id])
2013-02-26 21:04:14 +00:00
data = GitPushService.new.sample_data(project, current_user)
2012-07-31 05:32:49 +00:00
hook.execute(data)
end
end