debian-mirror-gitlab/app/services/merge_requests/conflicts/resolve_service.rb
2018-11-18 11:00:15 +05:30

13 lines
358 B
Ruby

# frozen_string_literal: true
module MergeRequests
module Conflicts
class ResolveService < MergeRequests::Conflicts::BaseService
def execute(current_user, params)
conflicts = Gitlab::Conflict::FileCollection.new(merge_request)
conflicts.resolve(current_user, params[:commit_message], params[:files])
end
end
end
end