danger-gitlab_reviewbot 1.1.1 → 1.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: c1c66efab79926e5fe804ec34cd49c377885a0f88940fbf954d90068e33edcb3
|
|
4
|
+
data.tar.gz: '09d54282e82e046837938f076fb051fa10e77bd3a91d2d9cf68a058dc2304225'
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 61b5e0b675c6052711bd0d6e04d205b21bb9f314a11c46f4b031aa30e39193188c00fe80cf8ada2ccc915e8cec61621102831bde06d650153f3d7fc3439759d7
|
|
7
|
+
data.tar.gz: 14afa37d0cc9f4afcff9f608ebde569834a69b30da6c5c4b58d7aa533dc758c241bc72f727837d592c88567ed72c2e18507bd2de0b8ea21f4073a01a215a9e49
|
|
@@ -16,7 +16,7 @@ module Danger
|
|
|
16
16
|
|
|
17
17
|
def assign!(amount)
|
|
18
18
|
currently_assigned = fetch_assigned_reviewers()
|
|
19
|
-
return [] if (amount - currently_assigned.length)
|
|
19
|
+
return [] if (amount - currently_assigned.length) <= 0
|
|
20
20
|
|
|
21
21
|
to_be_assigned = assignees(amount - currently_assigned.length)
|
|
22
22
|
all_assignees = currently_assigned + to_be_assigned
|
|
@@ -24,13 +24,11 @@ module Danger
|
|
|
24
24
|
end
|
|
25
25
|
|
|
26
26
|
it "Assign one reviewer" do
|
|
27
|
-
|
|
28
27
|
expect(@strategy_mock).to receive(:assign!).with(1).and_return(['Sam'])
|
|
29
28
|
|
|
30
29
|
@plugin.assign!
|
|
31
30
|
end
|
|
32
31
|
it "Assign one reviewer" do
|
|
33
|
-
|
|
34
32
|
expect(@strategy_mock).to receive(:assign!).with(1).and_return(['Sam'])
|
|
35
33
|
|
|
36
34
|
@plugin.assign!
|
|
@@ -44,7 +42,7 @@ module Danger
|
|
|
44
42
|
@plugin.assign!
|
|
45
43
|
end
|
|
46
44
|
|
|
47
|
-
it "
|
|
45
|
+
it "Correctly sets strategy options" do
|
|
48
46
|
expect(@strategy_mock).to receive(:excluded_users=)
|
|
49
47
|
expect(@strategy_mock).to receive(:excluded_users).and_return([])
|
|
50
48
|
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: danger-gitlab_reviewbot
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.1.
|
|
4
|
+
version: 1.1.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Fabio Gallonetto
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2020-05-
|
|
11
|
+
date: 2020-05-14 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: danger-plugin-api
|