gitlab-dangerfiles 4.0.0 → 4.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/plugins/roulette.rb +6 -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: c7a2df8349c1deecf91c154f6d8a8fa3e011217b00edb9078a12ae29e04891e9
|
4
|
+
data.tar.gz: 1df827117d0e4012436e5b77e19daa1ee36855e5085581baa29a8e36f4fbd04f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f0f4c1dd6bc142deaa101e4b47b362cfab5955b0d4fa4fd13f495bd9f7ce10f9452c1ed050e452aeb808440ba520b18d67533e52e93efd748e8bfd0a8d9c00c1
|
7
|
+
data.tar.gz: 17a595ead4bffa6416632543196f0b4b1f1141ab69f22144a9996f1db0dc76be6a39f3781794fd418333752e6e094042533841b9ea760e6f721c525f868ccf5f
|
@@ -280,6 +280,12 @@ module Danger
|
|
280
280
|
reviewer = spin_for_person(weighted_reviewers)
|
281
281
|
maintainer = spin_for_person(weighted_maintainers)
|
282
282
|
|
283
|
+
# allow projects with small number of reviewers to take from maintainers if possible
|
284
|
+
if reviewer.nil? && weighted_maintainers.uniq.size > 1
|
285
|
+
weighted_maintainers.delete(maintainer)
|
286
|
+
reviewer = spin_for_person(weighted_maintainers)
|
287
|
+
end
|
288
|
+
|
283
289
|
Spin.new(category, reviewer, maintainer, false)
|
284
290
|
end
|
285
291
|
|
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: 4.
|
4
|
+
version: 4.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- GitLab
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-09-
|
11
|
+
date: 2023-09-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|