fbe 0.0.58 → 0.0.59

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: 037e6b31b619e5a79f4f986f6be016c8cafed2fe3b7b000f0f02de5780052df1
4
- data.tar.gz: 85134954a6f355895224da28d587adfad1bca6f0f41b2b3da3b7ae6757d8038f
3
+ metadata.gz: dcb7a83f13eadb9bd57bd7a4741709a4b41622109f64e716ffabe98df60f2e7e
4
+ data.tar.gz: b854b1108dc729e24cee35970cefc92387c4e44c0a171c3991a162a819e7e256
5
5
  SHA512:
6
- metadata.gz: efcd99caa7002a17af0330cc0b9ab64bf049fee54d11c72454e90f4a99fca8b739b2f5ad351caa525023eb0bea0f15a7e964949821c953e77e4a76ff247d929b
7
- data.tar.gz: b5d1c69ca30a4973400ceb74c447aa90e909103ab6c73d7e4aefd8e254bbfd868daa1e215a8080bf7da6135f312077de6525437a7fb12da1bad3570d2cfc2fdd
6
+ metadata.gz: 95584b9296deb9707f364d29b8351505f70e12273c3df3794704535febd965a18f0777318ec8d445a51bcc2309453820094039354e1d3dc3f82aa50635f81b1c
7
+ data.tar.gz: a2893b12fef6a7f24ffda4ac0152c08500ac58a9ac27e6bc9e32ae3ba329b7b8f781dbfae7514bd6ade9b0c9fff38ac109706f1e2a6d8a67b7631b8a6a1be020
@@ -82,7 +82,9 @@ class Fbe::Graph
82
82
  }
83
83
  GRAPHQL
84
84
  )
85
- result&.to_h&.dig('repository', 'pullRequest', 'reviewThreads', 'nodes') || []
85
+ result&.to_h&.dig('repository', 'pullRequest', 'reviewThreads', 'nodes')&.select do |thread|
86
+ thread['isResolved']
87
+ end || []
86
88
  end
87
89
 
88
90
  def total_commits(owner, name, branch)
data/lib/fbe.rb CHANGED
@@ -27,5 +27,5 @@
27
27
  # License:: MIT
28
28
  module Fbe
29
29
  # Current version of the gem (changed by .rultor.yml on every release)
30
- VERSION = '0.0.58'
30
+ VERSION = '0.0.59'
31
31
  end
@@ -91,6 +91,14 @@ class TestGitHubGraph < Minitest::Test
91
91
  assert(0, result.count)
92
92
  end
93
93
 
94
+ def test_does_not_count_unresolved_conversations
95
+ skip # it's a "live" test, run it manually if you need it
96
+ WebMock.allow_net_connect!
97
+ g = Fbe.github_graph(options: Judges::Options.new, loog: Loog::NULL, global: {})
98
+ result = g.resolved_conversations('zerocracy', 'judges-action', 296)
99
+ assert_equal(0, result.count)
100
+ end
101
+
94
102
  def test_gets_total_commits_of_repo
95
103
  skip # it's a "live" test, run it manually if you need it
96
104
  WebMock.allow_net_connect!
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fbe
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.58
4
+ version: 0.0.59
5
5
  platform: ruby
6
6
  authors:
7
7
  - Yegor Bugayenko