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

8 lines
191 B
Ruby
Raw Normal View History

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