Class: Commits::CommitPatchService
- Inherits:
-
CreateService
- Object
- BaseService
- CreateService
- Commits::CommitPatchService
- Defined in:
- app/services/commits/commit_patch_service.rb
Constant Summary
Constants inherited from CreateService
Commits::CreateService::ValidationError
Constants inherited from BaseService
BaseService::UnauthorizedError
Instance Attribute Summary
Attributes inherited from BaseService
#current_user, #params, #project
Instance Method Summary collapse
-
#initialize(*args) ⇒ CommitPatchService
constructor
Requires: - project:
Projectto be committed into - user:Userthat will be the committer - params: - branch_name:Stringthe branch that will be committed into - start_branch:Stringthe branch that will be started from - patches:Gitlab::Git::Patches::Collectionthat contains the patches.
Methods inherited from CreateService
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
Constructor Details
#initialize(*args) ⇒ CommitPatchService
Requires:
-
project:
Projectto be committed into -
user:
Userthat will be the committer -
params:
-
branch_name:
Stringthe branch that will be committed into -
start_branch:
Stringthe branch that will be started from -
patches:
Gitlab::Git::Patches::Collectionthat contains the patches
-
12 13 14 15 16 |
# File 'app/services/commits/commit_patch_service.rb', line 12 def initialize(*args) super @patches = Gitlab::Git::Patches::Collection.new(Array(params[:patches])) end |