Skip to content

Commit 0dcb81b

Browse files
committed
Rerun branch history transcripts
1 parent f17d515 commit 0dcb81b

File tree

4 files changed

+80
-2
lines changed

4 files changed

+80
-2
lines changed
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
{
2+
"body": {
3+
"branchRef": "main",
4+
"history": {
5+
"items": [
6+
{
7+
"causalHash": "qt7njnf877g2q9g1f44eaigmcrgsdphc74jkdoos0i1pq6hguo03697adec2cb8lvgp71d4st3ss59g0haut5pfs5rpd4dru6pidt0g",
8+
"tag": "Changeset"
9+
},
10+
{
11+
"causalHash": "2k8f975ovhkm64bvog66rr8i7e4dripu8nkl7u62oif96if23lh5fh73n8p9qg21or98n4aljunidn6avonqpt1eu971h74iqlmgk5g",
12+
"tag": "Changeset"
13+
},
14+
{
15+
"causalHash": "n8b2r8o7u4f8ct0u79rhamnb16l3jhhr8986nudm6cgvg2j1fetouu0ojuiums5vtt8imsnsa7ek6lt18tcq3pf9knsinpsiqrq1r5o",
16+
"tag": "Changeset"
17+
}
18+
],
19+
"nextCursor": "<CURSOR>",
20+
"prevCursor": "<CURSOR>"
21+
},
22+
"projectRef": "@transcripts/branch-with-history"
23+
},
24+
"status": [
25+
{
26+
"status_code": 200
27+
}
28+
]
29+
}
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
{
2+
"body": {
3+
"branchRef": "main",
4+
"history": {
5+
"items": [
6+
{
7+
"causalHash": "bpm4dqkous3flfcu8t07jhirta2i5kondhbqa7u3plg2racaohhdupam5k1bm7pnlbhpuphih36mdufuhsnv2832ri45u1nvn0j4qr8",
8+
"tag": "Changeset"
9+
},
10+
{
11+
"causalHash": "6h6qn76m9053vmg8a36cilbdnolked4uqh6bgm4qkpflpmr2pji3pais6f74k7364avo0rqn9kgdfje8pqldph0u52u8kjc8j923v00",
12+
"tag": "Changeset"
13+
},
14+
{
15+
"causalHash": "hqul4i7u7gud3u5ovcdgbgdsmvfnh3o98baolc5f5g35aic1j84jtd97otnn0reuig39jnnsp7376j4adsko3v12o4h09vqc2drbbd8",
16+
"tag": "Changeset"
17+
}
18+
],
19+
"nextCursor": "<CURSOR>",
20+
"prevCursor": null
21+
},
22+
"projectRef": "@transcripts/branch-with-history"
23+
},
24+
"status": [
25+
{
26+
"status_code": 200
27+
}
28+
]
29+
}

transcripts/share-apis/branches/out/branch-history.json

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,21 @@
22
"body": {
33
"branchRef": "main",
44
"history": {
5-
"items": [],
6-
"nextCursor": null,
5+
"items": [
6+
{
7+
"causalHash": "bpm4dqkous3flfcu8t07jhirta2i5kondhbqa7u3plg2racaohhdupam5k1bm7pnlbhpuphih36mdufuhsnv2832ri45u1nvn0j4qr8",
8+
"tag": "Changeset"
9+
},
10+
{
11+
"causalHash": "6h6qn76m9053vmg8a36cilbdnolked4uqh6bgm4qkpflpmr2pji3pais6f74k7364avo0rqn9kgdfje8pqldph0u52u8kjc8j923v00",
12+
"tag": "Changeset"
13+
},
14+
{
15+
"causalHash": "hqul4i7u7gud3u5ovcdgbgdsmvfnh3o98baolc5f5g35aic1j84jtd97otnn0reuig39jnnsp7376j4adsko3v12o4h09vqc2drbbd8",
16+
"tag": "Changeset"
17+
}
18+
],
19+
"nextCursor": "<CURSOR>",
720
"prevCursor": null
821
},
922
"projectRef": "@transcripts/branch-with-history"

transcripts/share-apis/branches/run.zsh

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,3 +60,10 @@ fetch "$test_user" GET branch-details-deleted '/users/test/projects/publictestpr
6060
transcript_ucm transcript prelude.md
6161

6262
fetch "$transcripts_user" GET branch-history '/users/transcripts/projects/branch-with-history/branches/main/history?limit=3'
63+
64+
next_cursor=$(fetch_data_jq "$transcripts_user" GET branch-history-next-cursor '/users/transcripts/projects/branch-with-history/branches/main/history?limit=3' '.history.nextCursor')
65+
66+
fetch "$transcripts_user" GET branch-history-next-page "/users/transcripts/projects/branch-with-history/branches/main/history?limit=3&cursor=$next_cursor" '.history.prevCursor'
67+
prev_cursor=$(fetch_data_jq "$transcripts_user" GET branch-history-prev-cursor "/users/transcripts/projects/branch-with-history/branches/main/history?limit=3&cursor=$next_cursor" '.history.prevCursor')
68+
69+
fetch "$transcripts_user" GET branch-history-prev-page "/users/transcripts/projects/branch-with-history/branches/main/history?limit=3&cursor=$prev_cursor"

0 commit comments

Comments
 (0)