fbe 0.0.62 → 0.0.63

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/lib/fbe/octo.rb +34 -2
  3. data/lib/fbe.rb +1 -1
  4. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 9db76ff808a838d58140d80ab38a5abcaa73cac5e2db61a1fdf0f5eba7893ebc
4
- data.tar.gz: 7adbb08362be5719e5213b86fae16d958b7b8472037d3a3d5472188fbdd9f044
3
+ metadata.gz: 1bfbf479f7d6cc0686058767d0b66c251d32fb5d810287098e719cba2c26fa21
4
+ data.tar.gz: 2109aa7b2b2c41e356ec8ed3aad4cbe328b9b5c3b65642aef434529f5a5d0fad
5
5
  SHA512:
6
- metadata.gz: 666d18d08f85c279c8eeb556b77faf69dcbe1836e9bc222ddc3be7320f13e52a80ecc1d00b5cff60540e04a649e39fcda697934b5be02385dfb0e313ddb8f128
7
- data.tar.gz: d33b53016e62a49726639efe3058a92bf875b71a21fa07c6466b60ebd8f85ed48fff3a08ca08d20f1a3df25b7d31c4f913d591f354a99961d7959983a0beb9a7
6
+ metadata.gz: 969259e7bbbf1d4d0063bb8e1aa7ad3ee055590def1c8d09dd090cf9f1977f0f9593d8f65db72fb3d9312fe0fdf9be14f7e0df89e6cd6f16542da39d422b58e7
7
+ data.tar.gz: 27bb3190c5471fb5b8157e5e03b4678116b56951bf761f92c78a7f3aaf5984e4687be4e9feb8800c388fbe7aa665fc988821881560c4a6ab0b451eae37161233
data/lib/fbe/octo.rb CHANGED
@@ -297,6 +297,29 @@ class Fbe::FakeOctokit
297
297
  }
298
298
  end
299
299
 
300
+ def pull_request_reviews(_repo, _number)
301
+ [
302
+ {
303
+ id: 22_449_327,
304
+ user: { login: 'yegor256', id: 526_301, type: 'User' },
305
+ body: 'Some text 2',
306
+ state: 'CHANGES_REQUESTED',
307
+ author_association: 'CONTRIBUTOR',
308
+ submitted_at: Time.parse('2024-08-22 10:00:00 UTC'),
309
+ commit_id: 'b15c2893f1b5453'
310
+ },
311
+ {
312
+ id: 22_449_326,
313
+ user: { login: 'yegor256', id: 526_301, type: 'User' },
314
+ body: 'Some text 1',
315
+ state: 'CHANGES_REQUESTED',
316
+ author_association: 'CONTRIBUTOR',
317
+ submitted_at: Time.parse('2024-08-21 22:00:00 UTC'),
318
+ commit_id: 'a15c2893f1b5453'
319
+ }
320
+ ]
321
+ end
322
+
300
323
  def add_comment(_repo, _issue, _text)
301
324
  {
302
325
  id: 42
@@ -335,12 +358,14 @@ class Fbe::FakeOctokit
335
358
  {
336
359
  id: 42,
337
360
  number: 10,
338
- title: 'Awesome PR 10'
361
+ title: 'Awesome PR 10',
362
+ created_at: Time.parse('2024-08-21 19:00:00 UTC')
339
363
  },
340
364
  {
341
365
  id: 43,
342
366
  number: 11,
343
- title: 'Awesome PR 11'
367
+ title: 'Awesome PR 11',
368
+ created_at: Time.parse('2024-08-21 20:00:00 UTC')
344
369
  }
345
370
  ]
346
371
  }
@@ -983,6 +1008,7 @@ class Fbe::FakeOctokit
983
1008
  conclusion: 'success',
984
1009
  name: 'copyrights',
985
1010
  started_at: '2024-08-18T08:04:44Z',
1011
+ run_started_at: '2024-08-18T08:04:44Z',
986
1012
  completed_at: '2024-08-18T08:20:17Z'
987
1013
  },
988
1014
  {
@@ -991,6 +1017,7 @@ class Fbe::FakeOctokit
991
1017
  conclusion: 'success',
992
1018
  name: 'markdown-lint',
993
1019
  started_at: '2024-08-18T08:04:44Z',
1020
+ run_started_at: '2024-08-18T08:04:44Z',
994
1021
  completed_at: '2024-08-18T08:20:17Z'
995
1022
  },
996
1023
  {
@@ -999,6 +1026,7 @@ class Fbe::FakeOctokit
999
1026
  conclusion: 'failure',
1000
1027
  name: 'pdd',
1001
1028
  started_at: '2024-08-18T08:04:44Z',
1029
+ run_started_at: '2024-08-18T08:04:44Z',
1002
1030
  completed_at: '2024-08-18T08:20:17Z'
1003
1031
  },
1004
1032
  {
@@ -1007,6 +1035,7 @@ class Fbe::FakeOctokit
1007
1035
  conclusion: 'success',
1008
1036
  name: 'rake',
1009
1037
  started_at: '2024-08-18T08:04:44Z',
1038
+ run_started_at: '2024-08-18T08:04:44Z',
1010
1039
  completed_at: '2024-08-18T08:20:17Z'
1011
1040
  },
1012
1041
  {
@@ -1015,6 +1044,7 @@ class Fbe::FakeOctokit
1015
1044
  conclusion: 'success',
1016
1045
  name: 'shellcheck',
1017
1046
  started_at: '2024-08-18T08:04:44Z',
1047
+ run_started_at: '2024-08-18T08:04:44Z',
1018
1048
  completed_at: '2024-08-18T08:20:17Z'
1019
1049
  },
1020
1050
  {
@@ -1023,6 +1053,7 @@ class Fbe::FakeOctokit
1023
1053
  conclusion: 'failure',
1024
1054
  name: 'yamllint',
1025
1055
  started_at: '2024-08-18T08:04:44Z',
1056
+ run_started_at: '2024-08-18T08:04:44Z',
1026
1057
  completed_at: '2024-08-18T08:20:17Z'
1027
1058
  }
1028
1059
  ].select { |json| json[:id] == id }.first || {
@@ -1035,6 +1066,7 @@ class Fbe::FakeOctokit
1035
1066
  conclusion: 'success',
1036
1067
  workflow_id: id,
1037
1068
  created_at: random_time,
1069
+ run_started_at: random_time,
1038
1070
  repository: repository(repo)
1039
1071
  }
1040
1072
  end
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.62'
30
+ VERSION = '0.0.63'
31
31
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fbe
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.62
4
+ version: 0.0.63
5
5
  platform: ruby
6
6
  authors:
7
7
  - Yegor Bugayenko
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-08-26 00:00:00.000000000 Z
11
+ date: 2024-08-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: backtrace