summaryrefslogtreecommitdiff
path: root/app/services/files/update_service.rb
blob: 52451d72b571ee2a53117c4452acc916157b10bd (plain)
1
2
3
4
5
6
7
8
9
10
require_relative "base_service"

module Files
  class UpdateService < Files::BaseService
    def commit
      # Need to update file_path with the new filename
      repository.commit_file(current_user, @file_path, @file_content, @commit_message, @target_branch, true)
    end
  end
end