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: reportables_helper.rb
    path of file: ./repos/open-build-service/src/api/app/helpers/webui
    
    the code of the file until where you have to start completion: # TODO: Remove this helper after all `Event::CreateReport` records are migrated to the STI report classes
module Webui::ReportablesHelper
  include Webui::WebuiHelper

  def link_to_reportables(report_id:, reportable_type:, host:)
    reportable = Report.find(report_id).reportable
    return "The reported #{reportable_type.downcase} does not exist anymore." if reportable.blank?

    case reportable_type
    when 'Comment'
      link_to_commentables_on_
    
  def link_to_commentables_on_reportables(commentable:, host:)
    case commentable
    when BsRequest
      link_to("Request #{commentable.number}", Rails.application.routes.url_helpers.request_show_url(commentable.number, anchor: 'comments-list', only_path: false, host: host))
    when BsRequestAction
      link_to("Request #{commentable.bs_request.number}", Rails.application.routes.url_helpers.request_show_url(number: commentable.bs_request.number,
                                                                                                                request_action_id: commentable.id,
                                                                                                                anchor: 'tab-pane-changes', only_path: false, host: host))
    when Package
      link_to("#{commentable.name}", Rails.application.routes.url_helpers.package_show_url(package: commentable, project: commentable.project,
                                                                                           anchor: 'comments-list', only_path: false, host: host))
    when Project
      link_to("#{commentable.name}", Rails.application.routes.url_helpers.project_show_url(commentable, anchor: 'comments-list', only_path: false, host: host))
    end