cobench 0.0.31 → 0.0.32
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/features/cli.feature +5 -0
- data/lib/cobench/metrics/pulls.rb +1 -1
- data/lib/cobench/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: 862a9495f75a20749f29e93af9d8019e0b388c1f1628bc7d59db8193d1473b21
|
4
|
+
data.tar.gz: 95772672a309295380adeb8a8f624edbf2353c2a96be28e8b7fc3f2e65cf31b5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 48710b9f7e18c421b95abe5efec899d7641fb3fd80fa706257cbd0d7ed3c752ab00e6d3a40372afe47ce083b8dc319c9190b242e95a81561e60f5cee82a078f6
|
7
|
+
data.tar.gz: 4a06820fe76ad19d10c5919b5fb8e23a3ab314fb5b4101079e740f706b0b190a105c247a4932617421b012ce7cc86a03750e4efbd2d5322b9710fa87dd5f9104
|
data/features/cli.feature
CHANGED
@@ -15,6 +15,11 @@ Feature: Simple Reporting
|
|
15
15
|
Then Stdout contains "XML saved to"
|
16
16
|
And Exit code is zero
|
17
17
|
|
18
|
+
Scenario: Simple report through real GitHub API
|
19
|
+
When I run bin/cobench with "--coder=yegor256 --include=*/* --days=1 --verbose"
|
20
|
+
Then Stdout contains "XML saved to"
|
21
|
+
And Exit code is zero
|
22
|
+
|
18
23
|
Scenario: Simple report with defaults
|
19
24
|
Given I have a ".cobench" file with content:
|
20
25
|
"""
|
@@ -43,7 +43,7 @@ class Cobench::Pulls
|
|
43
43
|
pr = p.pull_request.url.split('/')[-1]
|
44
44
|
repo = p.repository_url.split('/')[-2..-1].join('/')
|
45
45
|
next unless Cobench::Match.new(@opts, loog).matches?(repo)
|
46
|
-
orgs
|
46
|
+
orgs << p.repository_url.split('/')[-2]
|
47
47
|
pr_json = @api.pull_request(repo, pr)
|
48
48
|
hocs = pr_json.additions + pr_json.deletions
|
49
49
|
hoc += hocs
|
data/lib/cobench/version.rb
CHANGED