gitlab-dangerfiles 3.6.2 → 3.6.3
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 719c4b19692de44772e95901fe7cd45c0bc75c19474babd21a554cf95bb58238
|
4
|
+
data.tar.gz: 768847102d15a2680125ffde73a373bf42bf30ff2d7911b0fdd78e94e7661741
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 48812fba8c3a3507980a276f5322dad66ff499f7630d9a0e46c242e656f0e4e4838eb245a9d8c6386d74c0a1caff02cedbd4a37ceb38ccef75894eef98249cef
|
7
|
+
data.tar.gz: 5220bf93967c1a88b375107b8ec6ce28a87ea0109ecce8e10c56dcd540209ab402c9e74c745cfaf7431edc9a01cc4c36fb0e7dc53ae9874101bbf2980293ea88
|
@@ -17,6 +17,7 @@ module Danger
|
|
17
17
|
none: "",
|
18
18
|
qa: "~QA",
|
19
19
|
ux: "~UX",
|
20
|
+
codeowners: '~"Code Owners"',
|
20
21
|
test: "~test for `spec/features/*`",
|
21
22
|
# Deprecated as of 2.3.0 in favor of tooling
|
22
23
|
engineering_productivity: '~"Engineering Productivity" for CI, Danger',
|
@@ -235,7 +236,13 @@ module Danger
|
|
235
236
|
# @return [String] the GFM for a category label, making its best guess if it's not
|
236
237
|
# a category we know about.
|
237
238
|
def label_for_category(category)
|
238
|
-
CATEGORY_LABELS
|
239
|
+
CATEGORY_LABELS[category] ||
|
240
|
+
|
241
|
+
if category.start_with?("`")
|
242
|
+
category.to_s
|
243
|
+
else
|
244
|
+
%Q{~"#{category}"}
|
245
|
+
end
|
239
246
|
end
|
240
247
|
|
241
248
|
# @return [String] +""+ when not in the CI context, and the MR Source Project ID as a string otherwise.
|
@@ -20,7 +20,13 @@ module Danger
|
|
20
20
|
|
21
21
|
Approval = Struct.new(:category, :spin) do
|
22
22
|
def self.from_approval_rule(rule, maintainer)
|
23
|
-
category =
|
23
|
+
category =
|
24
|
+
if rule["section"] == "codeowners"
|
25
|
+
"`#{rule["name"]}`"
|
26
|
+
else
|
27
|
+
rule["section"]
|
28
|
+
end.to_sym
|
29
|
+
|
24
30
|
spin = Spin.new(category, nil, maintainer, :reviewer)
|
25
31
|
|
26
32
|
new(category, spin)
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: gitlab-dangerfiles
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.6.
|
4
|
+
version: 3.6.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- GitLab
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-11-
|
11
|
+
date: 2022-11-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|