1 2 3 4 5 6
class TestHookService def execute(hook, current_user) data = Gitlab::DataBuilder::Push.build_sample(hook.project, current_user) hook.execute(data, 'push_hooks') end end