Class: Commits::ChangeService

Inherits:
CreateService show all
Defined in:
app/services/commits/change_service.rb

Direct Known Subclasses

CherryPickService, RevertService

Constant Summary

Constants inherited from CreateService

Commits::CreateService::ValidationError

Instance Attribute Summary

Attributes inherited from BaseService

#current_user, #params, #project

Instance Method Summary collapse

Methods inherited from CreateService

#execute

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

#initialize(*args) ⇒ ChangeService

Returns a new instance of ChangeService.



5
6
7
8
9
10
# File 'app/services/commits/change_service.rb', line 5

def initialize(*args)
  super

  @commit = params[:commit]
  @message = params[:message]
end