gitlab-dangerfiles 1.0.0 → 1.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/danger/helper.rb +1 -0
- data/lib/danger/roulette.rb +2 -0
- data/lib/gitlab/dangerfiles/teammate.rb +5 -0
- data/lib/gitlab/dangerfiles/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f299245a993fb11dfa01fb1f8c3a09167c0fd327c07c7580368f0b7fbd0c4da5
|
4
|
+
data.tar.gz: 18b3be58359757bd1587106ddcce00d80f4ce25d6179b3ce394505449ca3fda4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6916956a8eedeef8ef292e10a7a31ea4269648f1136c3dca198f0567f563f0534d3fa5c75e37bb66b451e817067971b62390334e4f2060988f83b611d51b6c49
|
7
|
+
data.tar.gz: e20cc032bcff74bc423d2d0b50c6026b4ea05f99fde5b053a9941249b52bf799e34cea420028d5411fe4646b52a409d886baaca2da56289e739f53fc9a9b8e61
|
data/lib/danger/helper.rb
CHANGED
@@ -19,6 +19,7 @@ module Danger
|
|
19
19
|
test: "~test ~Quality for `spec/features/*`",
|
20
20
|
engineering_productivity: '~"Engineering Productivity" for CI, Danger',
|
21
21
|
ci_template: '~"ci::templates"',
|
22
|
+
product_intelligence: '~"product intelligence"',
|
22
23
|
}.freeze
|
23
24
|
|
24
25
|
HTTPError = Class.new(StandardError)
|
data/lib/danger/roulette.rb
CHANGED
@@ -60,6 +60,8 @@ module Danger
|
|
60
60
|
# Fetch an already picked backend maintainer, or pick one otherwise
|
61
61
|
spin.maintainer = backend_spin&.maintainer || spin_for_category(project, :backend, timezone_experiment: including_timezone).maintainer
|
62
62
|
end
|
63
|
+
when :product_intelligence
|
64
|
+
spin.optional_role = :maintainer
|
63
65
|
end
|
64
66
|
end
|
65
67
|
|
@@ -101,6 +101,11 @@ module Gitlab
|
|
101
101
|
return true if capabilities(project).include?("#{kind} engineering_productivity")
|
102
102
|
|
103
103
|
capabilities(project).include?("#{kind} backend")
|
104
|
+
when :product_intelligence
|
105
|
+
return false unless role[/Engineer, Product Intelligence/]
|
106
|
+
|
107
|
+
# any reviewer of project from Product Intelligence team can review MR
|
108
|
+
kind == :reviewer && capabilities(project).any?
|
104
109
|
when nil
|
105
110
|
capabilities(project).include?("#{kind}")
|
106
111
|
else
|