1e53f40c25
The change in !11728 would cause an arbitrary project to be chosen to test system hooks, and it's likely that the project would not have any commits or relevant commits to test the hook. This would prevent admins from verifying that the hook fired. Instead of trying to create a representative hook dynamically, just send static data to guarantee the hook will actually be tested. Closes #37067
17 lines
343 B
Ruby
17 lines
343 B
Ruby
module TestHooks
|
|
class SystemService < TestHooks::BaseService
|
|
private
|
|
|
|
def push_events_data
|
|
Gitlab::DataBuilder::Push.sample_data
|
|
end
|
|
|
|
def tag_push_events_data
|
|
Gitlab::DataBuilder::Push.sample_data
|
|
end
|
|
|
|
def repository_update_events_data
|
|
Gitlab::DataBuilder::Repository.sample_data
|
|
end
|
|
end
|
|
end
|