gitlab-dangerfiles 2.3.2 → 2.4.0

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: b0c3470d9595a2aa541734ad57d7a47c189c89e6766f59b48baf8928bbd12a81
4
- data.tar.gz: c97021338170135f2819563af31d9c8580e44e0b74c2a689c0f764d391ca8718
3
+ metadata.gz: 635a5f7c76e99281a75a956cc045c25b11e0ba243dca544dfeff4c53c6665826
4
+ data.tar.gz: baf2cd3b0d5bc499f980ac031c816dbdfe656e099af9db4520ad0a282788b1c8
5
5
  SHA512:
6
- metadata.gz: f27ee9ec4cab2d09e2a4c796868f93c4b9e649fc9bcf16fdd3935c956cee3f4ab756e55a14f66ce82fa810354ac1dad087d09b7e6813fb4797a78372fd46e91f
7
- data.tar.gz: e8b704505f0f93ab263207d15c8e0a5a7492f55bb18598c40f1fdec93dc6c79eb6ff1e7280642d71d950365b005d3082c43448c8fab702115e2acfc6d19b0a7b
6
+ metadata.gz: 8db37fdb8728b021e63c60cf612255894d353224274010ae5ccaf7b110968c5735fbc8ec7bf936c320d6b1c0c5413ab5bd9eb925571035b824d06b6c95cd3a0f
7
+ data.tar.gz: 1c3a3d119b6be0a19d2648740038d33e1dcba3ed0821dec6c4b4be988983a8d7a45818b33c3510168a924b47950151fc0906f10887f6ac1f21388fad62bd43cb
data/README.md CHANGED
@@ -55,7 +55,6 @@ For the full documentation about the plugins, please see https://www.rubydoc.inf
55
55
 
56
56
  ### Rules
57
57
 
58
-
59
58
  Danger rules are located under `lib/danger/rules`.
60
59
 
61
60
  #### `changes_size`
@@ -22,6 +22,8 @@ module Danger
22
22
  tooling: '~"type::tooling" for CI, Danger',
23
23
  ci_template: '~"ci::templates"',
24
24
  product_intelligence: '~"product intelligence"',
25
+ integrations_be: '~"group::integrations" (backend)',
26
+ integrations_fe: '~"group::integrations" (frontend)',
25
27
  }.freeze
26
28
 
27
29
  # Allows to set specific rule's configuration by passing a block.
@@ -75,6 +75,8 @@ module Danger
75
75
  # Fetch an already picked maintainer, or pick one otherwise
76
76
  spin.maintainer = backend_spin&.maintainer || frontend_spin&.maintainer || spin_for_category(project, :backend, timezone_experiment: including_timezone).maintainer
77
77
  end
78
+ when :integrations_be, :integrations_fe
79
+ spin.optional_role = :maintainer
78
80
  end
79
81
  end
80
82
 
@@ -49,6 +49,18 @@ module Gitlab
49
49
  has_capability?(project, category, :maintainer, labels)
50
50
  end
51
51
 
52
+ def integrations_be?(project, category, labels)
53
+ return false unless category == :integrations_be
54
+
55
+ has_capability?(project, category, :reviewer, labels)
56
+ end
57
+
58
+ def integrations_fe?(project, category, labels)
59
+ return false unless category == :integrations_fe
60
+
61
+ has_capability?(project, category, :reviewer, labels)
62
+ end
63
+
52
64
  def markdown_name(author: nil)
53
65
  "#{@markdown_name} (#{utc_offset_text(author)})"
54
66
  end
@@ -101,6 +113,12 @@ module Gitlab
101
113
  return true if capabilities(project).include?("#{kind} engineering_productivity")
102
114
 
103
115
  capabilities(project).include?("#{kind} backend")
116
+ when :integrations_be
117
+ kind == :reviewer &&
118
+ role.match?(/Backend Engineer.+Ecosystem:Integrations/)
119
+ when :integrations_fe
120
+ kind == :reviewer &&
121
+ role.match?(/Frontend Engineer.+Ecosystem:Integrations/)
104
122
  when nil
105
123
  capabilities(project).include?("#{kind}")
106
124
  else
@@ -1,5 +1,5 @@
1
1
  module Gitlab
2
2
  module Dangerfiles
3
- VERSION = "2.3.2"
3
+ VERSION = "2.4.0"
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: 2.3.2
4
+ version: 2.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - GitLab
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2021-10-27 00:00:00.000000000 Z
11
+ date: 2021-11-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: danger-gitlab