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: 5c9ef239b79432bbb3b87cd49450338435f8ea5e0d27ed4beff1c2ce019dc79a
4
- data.tar.gz: f5b42d80cba45edaba0bbda8fbbb314546489743e16ec74b7ab28dfc89bd4acb
3
+ metadata.gz: 719c4b19692de44772e95901fe7cd45c0bc75c19474babd21a554cf95bb58238
4
+ data.tar.gz: 768847102d15a2680125ffde73a373bf42bf30ff2d7911b0fdd78e94e7661741
5
5
  SHA512:
6
- metadata.gz: 3dc38989aa7959bac78ec9bcd36fa7ddfcd0c265b6a049c8ac37d5163bf8834e930e317368402d53850a8a12161bdf8f38cb1309068c27319f34c9a5b7c85d06
7
- data.tar.gz: 779f8c6c3f1b817b88813010048d1541609fca1e92bd3021abf4f8b18f46fffcbee8ed239a48d78254a6858925d56b62ddf202b3f8c361b62f4ffcc57476fc51
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.fetch(category, %Q{~"#{category}"})
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 = rule["section"].to_sym
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)
@@ -1,5 +1,5 @@
1
1
  module Gitlab
2
2
  module Dangerfiles
3
- VERSION = "3.6.2"
3
+ VERSION = "3.6.3"
4
4
  end
5
5
  end
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.2
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-04 00:00:00.000000000 Z
11
+ date: 2022-11-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake