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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f9f8e727ceb4fd8d6a8163b5c2637cb117426e30d3002ae5772b7031c83bc98a
4
- data.tar.gz: 650de232d49a5cb7a022ed53e4607ddc8941ba0615e5cc73214da44d2e838967
3
+ metadata.gz: f299245a993fb11dfa01fb1f8c3a09167c0fd327c07c7580368f0b7fbd0c4da5
4
+ data.tar.gz: 18b3be58359757bd1587106ddcce00d80f4ce25d6179b3ce394505449ca3fda4
5
5
  SHA512:
6
- metadata.gz: fe6821b98e683ead18db025365f4efe6821ca92773f8baacfec88ab12131ab1597d735a1262d2cf65928d24b9b72182a1db2d2cb3435edd6c52248eb029ecd87
7
- data.tar.gz: e984610303236d5d6f964ed04c61f924560cf2e29b04c1b485434f0755dc9dd676d486b879972f02b4463da4d499fd070e2a8629bfb570cee93e88b0e4eaf531
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)
@@ -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
@@ -1,5 +1,5 @@
1
1
  module Gitlab
2
2
  module Dangerfiles
3
- VERSION = "1.0.0"
3
+ VERSION = "1.1.0"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gitlab-dangerfiles
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Rémy Coutable