cobench 0.0.48 → 0.0.49

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: 6749a0d859fd42e3dd757ce6d2dbd6482629415d4a35161669296daba51d958e
4
- data.tar.gz: 18ff55bfa8d2ac87f98544e2767c17ef24581f83a982faab9bc7b65b18e0730e
3
+ metadata.gz: a84ac17fa4339a99fc8d31ae5b1f4f17817385594b503d26d4d5636d314b2626
4
+ data.tar.gz: 12c6435acecce153da8250dcb124435fc31f7e9c7bc106678a217822d06b90d3
5
5
  SHA512:
6
- metadata.gz: cbd55fe7cc97545afa4a9c4a9263c039991a88c32f614ab78e2671d0da47c17900c58a58b93f94533f92208b189a925d234b933487f35b0f9aa3e024179ec3e4
7
- data.tar.gz: 1406ef521498cabae719f3f2f172ceba9d8b1e9449c8f81f488b32f0d6dc2b998f66ebd081da69fc6990150c42f55b73faac1cdd848714e496dc34404ff7a06a
6
+ metadata.gz: d63511d8608921f3130581813a178b39459dfb96281a2cbf23912fc795ac0b091f8a25e4a74287c9d1fb2f3bee7c1b4152654341edcda554c77aee67336bb217
7
+ data.tar.gz: 4c8e62a7e955b978103dfc6c73d610652de3682e1c0e16f1e2e2b26a5ab622daf5dc9b1a31c641f537de2086222abe105f2c040a29030b36c3ddb837f223eca8
@@ -5,7 +5,7 @@ on:
5
5
  pull_request:
6
6
  jobs:
7
7
  pdd:
8
- runs-on: ubuntu-20.04
8
+ runs-on: ubuntu-22.04
9
9
  steps:
10
10
  - uses: actions/checkout@v3
11
11
  - uses: g4s8/pdd-action@master
@@ -5,7 +5,7 @@ on:
5
5
  pull_request:
6
6
  jobs:
7
7
  xcop:
8
- runs-on: ubuntu-20.04
8
+ runs-on: ubuntu-22.04
9
9
  steps:
10
10
  - uses: actions/checkout@v3
11
11
  - uses: g4s8/xcop-action@master
data/Gemfile CHANGED
@@ -22,10 +22,10 @@ source 'https://rubygems.org'
22
22
  gemspec
23
23
 
24
24
  gem 'cucumber', '8.0.0', require: false
25
- gem 'minitest', '5.18.1', require: false
25
+ gem 'minitest', '5.19.0', require: false
26
26
  gem 'rake', '13.0.6', require: false
27
27
  gem 'rdoc', '6.5.0', require: false
28
- gem 'rubocop', '1.54.2', require: false
29
- gem 'rubocop-rspec', '2.22.0', require: false
28
+ gem 'rubocop', '1.55.1', require: false
29
+ gem 'rubocop-rspec', '2.23.2', require: false
30
30
  gem 'simplecov', '0.22.0', require: false
31
31
  gem 'xcop', '0.7.1', require: false
@@ -48,6 +48,11 @@ class Cobench::Reviews
48
48
  loog.debug("There are no reviews in #{repo}##{pr} by @#{@user}")
49
49
  next
50
50
  end
51
+ pr_json = @api.pull_request(repo, pr)
52
+ if pr_json[:user][:login] == @user
53
+ loog.debug("There PR is authored by @#{@user}, skipping it (GitHub API mistake)")
54
+ next
55
+ end
51
56
  posted = @api.pull_request_comments(repo, pr).count { |c| c[:user][:login].downcase == @user }
52
57
  posted += @api.issue_comments(repo, pr).count { |c| c[:user][:login].downcase == @user }
53
58
  loog.debug("#{posted} messages posted by @#{@user} to #{repo}##{pr}")
@@ -23,5 +23,5 @@
23
23
  # Copyright:: Copyright (c) 2022-2023 Yegor Bugayenko
24
24
  # License:: MIT
25
25
  module Cobench
26
- VERSION = '0.0.48'.freeze
26
+ VERSION = '0.0.49'.freeze
27
27
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cobench
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.48
4
+ version: 0.0.49
5
5
  platform: ruby
6
6
  authors:
7
7
  - Yegor Bugayenko
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-07-25 00:00:00.000000000 Z
11
+ date: 2023-08-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: backtrace