gitlab-dangerfiles 2.10.1 → 2.10.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: fb3512fc2c750751c44df16f13e6d8d7c47b6a87f77030852b278725503d3994
4
- data.tar.gz: b611380c2b6a8f9cd4372e6b63b7b6c13a125373551a706b9e4e11cf552bc270
3
+ metadata.gz: ce597e38c3466f9c039d8b7938c2eb3e8fcf01142608211636f6106310c793ec
4
+ data.tar.gz: f8d79cb8a4019d70cb0cb206386b219ae4e37074694f26f39f35f8e8a93523ac
5
5
  SHA512:
6
- metadata.gz: ba7680e6aecd1c1231118033e95cbed567a97f638467d2ce0a131ac5def26c0746e19c8117df0629f1c61a3b14706e56bde80945fe3ff3617f0d0a5b87d5e14f
7
- data.tar.gz: 5a1df455e26146be92687f2e416f095f6ed9f7176576d13afce1d4a2d38ad0e928b7051b091323a0dc85e5f6a7b74e4fabf09b1ec88b447d089dea9ab9260844
6
+ metadata.gz: 00b61a080b6872088e2ded726bd0c4af98935c07177fabeaa082c2f09bfc8542cf8d0c69ed01d7384d71726062ede02642cf7e52a19c46f6e8b6c7e4e7eb79b3
7
+ data.tar.gz: 32acb334ddc1b186b91efd0d550bc303613d37bfea89a7ae38ea3ab3f29937b72b9b81e88ed2f7a80c96181cc6ec110c836a9368667695073b2e77b2268ee5af
@@ -282,7 +282,7 @@ module Danger
282
282
  def mr_labels
283
283
  return [] unless ci?
284
284
 
285
- (gitlab_helper.mr_labels + labels_to_add.to_a).uniq
285
+ (gitlab_helper.mr_labels + labels_to_add).uniq
286
286
  end
287
287
 
288
288
  # @return [String] +`git rev-parse --abbrev-ref HEAD`+ when not in the CI context, and the MR source branch otherwise.
@@ -409,9 +409,9 @@ module Danger
409
409
  # itself. Without this method, the first rule wouldn't know that the label would be applied and would ask
410
410
  # for it anyway.
411
411
  #
412
- # @return [Set<String>] the list of labels that Danger will add
412
+ # @return [Array<String>] the list of labels that Danger will add
413
413
  def labels_to_add
414
- @labels_to_add ||= Set.new
414
+ @labels_to_add ||= []
415
415
  end
416
416
 
417
417
  private
@@ -4,7 +4,7 @@ require_relative "../../../gitlab/dangerfiles/type_label_guesser"
4
4
 
5
5
  if respond_to?(:changelog) && !helper.has_scoped_label_with_scope?("type")
6
6
  type_label_guesser = Gitlab::Dangerfiles::TypeLabelGuesser.new
7
- helper.labels_to_add.merge(type_label_guesser.labels_from_changelog_categories(changelog.categories))
7
+ helper.labels_to_add.concat(type_label_guesser.labels_from_changelog_categories(changelog.categories))
8
8
  end
9
9
 
10
10
  unless helper.has_scoped_label_with_scope?("type")
@@ -1,5 +1,5 @@
1
1
  module Gitlab
2
2
  module Dangerfiles
3
- VERSION = "2.10.1"
3
+ VERSION = "2.10.2"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gitlab-dangerfiles
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.10.1
4
+ version: 2.10.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - GitLab