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 +4 -4
- data/README.md +0 -1
- data/lib/danger/plugins/helper.rb +2 -0
- data/lib/danger/plugins/roulette.rb +2 -0
- data/lib/gitlab/dangerfiles/teammate.rb +18 -0
- data/lib/gitlab/dangerfiles/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 635a5f7c76e99281a75a956cc045c25b11e0ba243dca544dfeff4c53c6665826
|
4
|
+
data.tar.gz: baf2cd3b0d5bc499f980ac031c816dbdfe656e099af9db4520ad0a282788b1c8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8db37fdb8728b021e63c60cf612255894d353224274010ae5ccaf7b110968c5735fbc8ec7bf936c320d6b1c0c5413ab5bd9eb925571035b824d06b6c95cd3a0f
|
7
|
+
data.tar.gz: 1c3a3d119b6be0a19d2648740038d33e1dcba3ed0821dec6c4b4be988983a8d7a45818b33c3510168a924b47950151fc0906f10887f6ac1f21388fad62bd43cb
|
data/README.md
CHANGED
@@ -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
|
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.
|
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-
|
11
|
+
date: 2021-11-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: danger-gitlab
|