class Dependabot::PullRequestCreator::MessageBuilder

def application_pr_name

def application_pr_name
  "bump " +
    if dependencies.count == 1
      dependency = dependencies.first
      "#{T.must(dependency).display_name} " \
        "#{from_version_msg(T.must(dependency).humanized_previous_version)}" \
        "to #{T.must(dependency).humanized_version}"
    elsif updating_a_property?
      dependency = dependencies.first
      "#{property_name} " \
        "#{from_version_msg(T.must(dependency).humanized_previous_version)}" \
        "to #{T.must(dependency).humanized_version}"
    elsif updating_a_dependency_set?
      dependency = dependencies.first
      "#{dependency_set.fetch(:group)} dependency set " \
        "#{from_version_msg(T.must(dependency).humanized_previous_version)}" \
        "to #{T.must(dependency).humanized_version}"
    else
      names = dependencies.map(&:name).uniq
      if names.count == 1
        T.must(names.first)
      else
        "#{T.must(names[0..-2]).join(', ')} and #{names[-1]}"
      end
    end
end