You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: merge_request.rb
    path of file: ./repos/gitlabhq/tooling
    
    the code of the file until where you have to start completion: # frozen_string_literal: true

require 'faraday'
require 'faraday_middleware'

module Tooling
  class MergeRequest
    GITLAB_API_URL_TEMPLATE = 'ht
    
    def self.for(branch:, project_path:)
      url = format(GITLAB_API_URL_TEMPLATE, { project_path: URI.encode_www_form_component(project_path) })

      conn = Faraday.new(url) do |conn|
        conn.request :json
        conn.response :json, content_type: /\bjson$/
        conn.adapter Faraday.default_adapter
      end

      response = conn.get do |req|
        req.params[:source_branch] = branch
        req.params[:order_by] = 'updated_at'
        req.params[:sort] = 'desc'
      end

      new(response.body.first)
    end