fbe 0.0.62 → 0.0.64
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 +4 -4
- data/lib/fbe/octo.rb +48 -2
- data/lib/fbe.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: d96502169a7e6ed683496261dacef96acb4bf7d413861d043e310e3a4bdc8302
|
|
4
|
+
data.tar.gz: 5eea1f292484692f7ce7252546c0f572deb6de4adea8753ba0abd3a6e93bf77d
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: feb0e280da5bde5f46f042fb9233d0d6d2c1dc5344ad7c5e7d8cf75b305d3fac27c60f90df0428e6ef5c35e89502e40acd365177eb0754722cc58e70484b846f
|
|
7
|
+
data.tar.gz: 262067fa870f2b4881e1715da52f7688b8c8f73cf332578ad24a933efd7e40ee8057592e706d7d60fa207864dfe4b5ccce66f1de1c047e745102733aea1b682a
|
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
|
|
@@ -327,6 +350,20 @@ class Fbe::FakeOctokit
|
|
|
327
350
|
}
|
|
328
351
|
]
|
|
329
352
|
}
|
|
353
|
+
elsif query.include?('type:pr') && query.include?('is:merged')
|
|
354
|
+
{
|
|
355
|
+
total_count: 1,
|
|
356
|
+
incomplete_results: false,
|
|
357
|
+
items: [
|
|
358
|
+
{
|
|
359
|
+
id: 42,
|
|
360
|
+
number: 10,
|
|
361
|
+
title: 'Awesome PR 10',
|
|
362
|
+
created_at: Time.parse('2024-08-21 19:00:00 UTC'),
|
|
363
|
+
merged_at: Time.parse('2024-08-23 19:00:00 UTC')
|
|
364
|
+
}
|
|
365
|
+
]
|
|
366
|
+
}
|
|
330
367
|
elsif query.include?('type:pr')
|
|
331
368
|
{
|
|
332
369
|
total_count: 2,
|
|
@@ -335,12 +372,14 @@ class Fbe::FakeOctokit
|
|
|
335
372
|
{
|
|
336
373
|
id: 42,
|
|
337
374
|
number: 10,
|
|
338
|
-
title: 'Awesome PR 10'
|
|
375
|
+
title: 'Awesome PR 10',
|
|
376
|
+
created_at: Time.parse('2024-08-21 19:00:00 UTC')
|
|
339
377
|
},
|
|
340
378
|
{
|
|
341
379
|
id: 43,
|
|
342
380
|
number: 11,
|
|
343
|
-
title: 'Awesome PR 11'
|
|
381
|
+
title: 'Awesome PR 11',
|
|
382
|
+
created_at: Time.parse('2024-08-21 20:00:00 UTC')
|
|
344
383
|
}
|
|
345
384
|
]
|
|
346
385
|
}
|
|
@@ -983,6 +1022,7 @@ class Fbe::FakeOctokit
|
|
|
983
1022
|
conclusion: 'success',
|
|
984
1023
|
name: 'copyrights',
|
|
985
1024
|
started_at: '2024-08-18T08:04:44Z',
|
|
1025
|
+
run_started_at: '2024-08-18T08:04:44Z',
|
|
986
1026
|
completed_at: '2024-08-18T08:20:17Z'
|
|
987
1027
|
},
|
|
988
1028
|
{
|
|
@@ -991,6 +1031,7 @@ class Fbe::FakeOctokit
|
|
|
991
1031
|
conclusion: 'success',
|
|
992
1032
|
name: 'markdown-lint',
|
|
993
1033
|
started_at: '2024-08-18T08:04:44Z',
|
|
1034
|
+
run_started_at: '2024-08-18T08:04:44Z',
|
|
994
1035
|
completed_at: '2024-08-18T08:20:17Z'
|
|
995
1036
|
},
|
|
996
1037
|
{
|
|
@@ -999,6 +1040,7 @@ class Fbe::FakeOctokit
|
|
|
999
1040
|
conclusion: 'failure',
|
|
1000
1041
|
name: 'pdd',
|
|
1001
1042
|
started_at: '2024-08-18T08:04:44Z',
|
|
1043
|
+
run_started_at: '2024-08-18T08:04:44Z',
|
|
1002
1044
|
completed_at: '2024-08-18T08:20:17Z'
|
|
1003
1045
|
},
|
|
1004
1046
|
{
|
|
@@ -1007,6 +1049,7 @@ class Fbe::FakeOctokit
|
|
|
1007
1049
|
conclusion: 'success',
|
|
1008
1050
|
name: 'rake',
|
|
1009
1051
|
started_at: '2024-08-18T08:04:44Z',
|
|
1052
|
+
run_started_at: '2024-08-18T08:04:44Z',
|
|
1010
1053
|
completed_at: '2024-08-18T08:20:17Z'
|
|
1011
1054
|
},
|
|
1012
1055
|
{
|
|
@@ -1015,6 +1058,7 @@ class Fbe::FakeOctokit
|
|
|
1015
1058
|
conclusion: 'success',
|
|
1016
1059
|
name: 'shellcheck',
|
|
1017
1060
|
started_at: '2024-08-18T08:04:44Z',
|
|
1061
|
+
run_started_at: '2024-08-18T08:04:44Z',
|
|
1018
1062
|
completed_at: '2024-08-18T08:20:17Z'
|
|
1019
1063
|
},
|
|
1020
1064
|
{
|
|
@@ -1023,6 +1067,7 @@ class Fbe::FakeOctokit
|
|
|
1023
1067
|
conclusion: 'failure',
|
|
1024
1068
|
name: 'yamllint',
|
|
1025
1069
|
started_at: '2024-08-18T08:04:44Z',
|
|
1070
|
+
run_started_at: '2024-08-18T08:04:44Z',
|
|
1026
1071
|
completed_at: '2024-08-18T08:20:17Z'
|
|
1027
1072
|
}
|
|
1028
1073
|
].select { |json| json[:id] == id }.first || {
|
|
@@ -1035,6 +1080,7 @@ class Fbe::FakeOctokit
|
|
|
1035
1080
|
conclusion: 'success',
|
|
1036
1081
|
workflow_id: id,
|
|
1037
1082
|
created_at: random_time,
|
|
1083
|
+
run_started_at: random_time,
|
|
1038
1084
|
repository: repository(repo)
|
|
1039
1085
|
}
|
|
1040
1086
|
end
|
data/lib/fbe.rb
CHANGED
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.
|
|
4
|
+
version: 0.0.64
|
|
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-
|
|
11
|
+
date: 2024-08-30 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: backtrace
|