Class: Git::BaseHooksService

Inherits:
BaseService show all
Includes:
ChangeParams, Gitlab::Utils::StrongMemoize
Defined in:
app/services/git/base_hooks_service.rb

Direct Known Subclasses

BranchHooksService, TagHooksService

Constant Summary collapse

PROCESS_COMMIT_LIMIT =

The N most recent commits to process in a single push payload.

100

Instance Attribute Summary

Attributes inherited from BaseService

#current_user, #params, #project

Instance Method Summary collapse

Methods included from Gitlab::Utils::StrongMemoize

#clear_memoization, #strong_memoize, #strong_memoized?

Methods inherited from BaseService

#initialize

Methods included from BaseServiceUtility

#deny_visibility_level, #event_service, #log_error, #log_info, #notification_service, #system_hook_service, #todo_service, #visibility_level

Methods included from Gitlab::Allowable

#can?

Constructor Details

This class inherits a constructor from BaseService

Instance Method Details

#executeObject


11
12
13
14
15
16
17
18
19
20
# File 'app/services/git/base_hooks_service.rb', line 11

def execute
  create_events
  create_pipelines
  execute_project_hooks

  # Not a hook, but it needs access to the list of changed commits
  enqueue_invalidate_cache

  success
end