Welcome to mirror list, hosted at ThFree Co, Russian Federation.

update_service.rb « files « services « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 8d2b5083179e0ed50c507a355e9067a6d5d05d67 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
require_relative "base_service"

module Files
  class UpdateService < Files::BaseService
    def commit
      repository.update_file(current_user, @file_path, @file_content,
                             branch: @target_branch,
                             previous_path: @previous_path,
                             message: @commit_message)
    end
  end
end