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: import_pull_requests_worker.rb
    path of file: ./repos/gitlabhq/app/workers/gitlab/github_import/stage
    
    the code of the file until where you have to start completion: # frozen_string_literal: true

module Gitlab
  module GithubImport
    module Stage
      class ImportPullRequestsWorker # rubocop:disable Scalability/IdempotentWorker
        include Applic
    
        def allocate_merge_requests_internal_id!(project, client)
          return if InternalId.exists?(project: project, usage: :merge_requests) # rubocop: disable CodeReuse/ActiveRecord

          options = { state: 'all', sort: 'number', direction: 'desc', per_page: '1' }
          last_github_pull_request = client.each_object(:pulls, project.import_source, options).first

          return unless last_github_pull_request

          MergeRequest.track_target_project_iid!(project, last_github_pull_request[:number])
        end