fbe 0.0.73 → 0.0.74
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/fbe/octo.rb +57 -0
- data/lib/fbe.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: 5af7330e4b710edf50500dd3a69969669d86e4ecb01ad14ba54a602c1f7e414b
|
4
|
+
data.tar.gz: 5022fb1a52f7fee7f9abf9d516e956f182efd60b6fb5964613cd1d1ad6037385
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7be786a2f37e025311d450f4c800614c227545a33fb4ff5d8b8b29f254a802163695996076004addc3076cdcd6fd6aca9380036023ca2e7d7dd0a278810ec3b1
|
7
|
+
data.tar.gz: c3d2298c17f60be42303276a7295f8b1069adffb53af62b7084985a0709e35e5874407373c4f8b9e027af2879a1d5c7b4b3fb306b5c4925421bdaba40f26b816
|
data/lib/fbe/octo.rb
CHANGED
@@ -520,6 +520,63 @@ class Fbe::FakeOctokit
|
|
520
520
|
}
|
521
521
|
end
|
522
522
|
|
523
|
+
def search_commits(_query, _options = {})
|
524
|
+
{
|
525
|
+
total_count: 3,
|
526
|
+
incomplete_results: false,
|
527
|
+
items: [
|
528
|
+
{
|
529
|
+
commit: {
|
530
|
+
author: { name: 'Yegor', email: 'yegor@gmail.com', date: Time.parse('2024-09-15 12:23:25 UTC') },
|
531
|
+
committer: { name: 'Yegor', email: 'yegor@gmail.com', date: Time.parse('2024-09-15 12:23:25 UTC') },
|
532
|
+
message: 'Some text',
|
533
|
+
tree: { sha: '6e04579960bf67610d' },
|
534
|
+
comment_count: 0
|
535
|
+
},
|
536
|
+
author: { login: 'yegor256', id: 526_301, type: 'User', site_admin: false },
|
537
|
+
committer: { login: 'yegor256', id: 526_301, type: 'User', site_admin: false },
|
538
|
+
parents: [{ sha: '60cff20bdb66' }],
|
539
|
+
repository: {
|
540
|
+
id: 799_177_290, name: 'judges-action', full_name: 'zerocracy/judges-action',
|
541
|
+
owner: { login: 'zerocracy', id: 24_234_201, type: 'Organization', site_admin: false }
|
542
|
+
}
|
543
|
+
},
|
544
|
+
{
|
545
|
+
commit: {
|
546
|
+
author: { name: 'Yegor', email: 'yegor2@gmail.com', date: Time.parse('2024-09-14 12:23:25 UTC') },
|
547
|
+
committer: { name: 'Yegor', email: 'yegor2@gmail.com', date: Time.parse('2024-09-14 12:23:25 UTC') },
|
548
|
+
message: 'Some text 2',
|
549
|
+
tree: { sha: 'defa18e4e2250987' },
|
550
|
+
comment_count: 0
|
551
|
+
},
|
552
|
+
author: { login: 'yegor257', id: 526_302, type: 'User', site_admin: false },
|
553
|
+
committer: { login: 'yegor257', id: 526_302, type: 'User', site_admin: false },
|
554
|
+
parents: [{ sha: 'a04c15bb34fddbba' }],
|
555
|
+
repository: {
|
556
|
+
id: 799_177_290, name: 'judges-action', full_name: 'zerocracy/judges-action',
|
557
|
+
owner: { login: 'zerocracy', id: 24_234_201, type: 'Organization', site_admin: false }
|
558
|
+
}
|
559
|
+
},
|
560
|
+
{
|
561
|
+
commit: {
|
562
|
+
author: { name: 'Yegor', email: 'yegor3@gmail.com', date: Time.parse('2024-09-13 12:23:25 UTC') },
|
563
|
+
committer: { name: 'Yegor', email: 'yegor3@gmail.com', date: Time.parse('2024-09-13 12:23:25 UTC') },
|
564
|
+
message: 'Some text 3',
|
565
|
+
tree: { sha: 'bb7277441139739b902a' },
|
566
|
+
comment_count: 0
|
567
|
+
},
|
568
|
+
author: { login: 'yegor258', id: 526_303, type: 'User', site_admin: false },
|
569
|
+
committer: { login: 'yegor258', id: 526_303, type: 'User', site_admin: false },
|
570
|
+
parents: [{ sha: '18db84d469bb727' }],
|
571
|
+
repository: {
|
572
|
+
id: 799_177_290, name: 'judges-action', full_name: 'zerocracy/judges-action',
|
573
|
+
owner: { login: 'zerocracy', id: 24_234_201, type: 'Organization', site_admin: false }
|
574
|
+
}
|
575
|
+
}
|
576
|
+
]
|
577
|
+
}
|
578
|
+
end
|
579
|
+
|
523
580
|
def issue_timeline(_repo, _issue, _options = {})
|
524
581
|
[
|
525
582
|
{
|
data/lib/fbe.rb
CHANGED