# frozen_string_literal: true require_relative "../../../gitlab/dangerfiles/type_label_guesser" if respond_to?(:changelog) && !helper.has_scoped_label_with_scope?("type") type_label_guesser = Gitlab::Dangerfiles::TypeLabelGuesser.new helper.labels_to_add.concat(type_label_guesser.labels_from_changelog_categories(changelog.categories)) end unless helper.has_scoped_label_with_scope?("type") warn "Please add a [merge request type](https://about.gitlab.com/handbook/engineering/metrics/#work-type-classification) to this merge request." end