gitlab-dangerfiles 2.10.1 → 2.10.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: ce597e38c3466f9c039d8b7938c2eb3e8fcf01142608211636f6106310c793ec
|
|
4
|
+
data.tar.gz: f8d79cb8a4019d70cb0cb206386b219ae4e37074694f26f39f35f8e8a93523ac
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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
|
|
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 [
|
|
412
|
+
# @return [Array<String>] the list of labels that Danger will add
|
|
413
413
|
def labels_to_add
|
|
414
|
-
@labels_to_add ||=
|
|
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.
|
|
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")
|