Sha256: d19cb8060649a1d2c1d187044285739fc63fc8429d58f30a712e1c7803b7b089

Contents?: true

Size: 550 Bytes

Versions: 3

Compression:

Stored size: 550 Bytes

Contents

# 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

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
gitlab-dangerfiles-3.0.0 lib/danger/rules/type_label/Dangerfile
gitlab-dangerfiles-2.11.0 lib/danger/rules/type_label/Dangerfile
gitlab-dangerfiles-2.10.2 lib/danger/rules/type_label/Dangerfile