Skip to content

Commit 9f89538

Browse files
authored
Merge pull request #187 from AnswerDotAI/update
fresh build
2 parents e2b1b8c + a66cd97 commit 9f89538

File tree

9 files changed

+645
-159
lines changed

9 files changed

+645
-159
lines changed

00_core.ipynb

Lines changed: 48 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -272,7 +272,7 @@
272272
"text/markdown": [
273273
"---\n",
274274
"\n",
275-
"[source](https://github.com/fastai/ghapi/blob/master/ghapi/core.py#L121){target=\"_blank\" style=\"float:right; font-size:smaller\"}\n",
275+
"[source](https://github.com/fastai/ghapi/blob/master/ghapi/core.py#L123){target=\"_blank\" style=\"float:right; font-size:smaller\"}\n",
276276
"\n",
277277
"### GhApi.__call__\n",
278278
"\n",
@@ -285,7 +285,7 @@
285285
"text/plain": [
286286
"---\n",
287287
"\n",
288-
"[source](https://github.com/fastai/ghapi/blob/master/ghapi/core.py#L121){target=\"_blank\" style=\"float:right; font-size:smaller\"}\n",
288+
"[source](https://github.com/fastai/ghapi/blob/master/ghapi/core.py#L123){target=\"_blank\" style=\"float:right; font-size:smaller\"}\n",
289289
"\n",
290290
"### GhApi.__call__\n",
291291
"\n",
@@ -331,9 +331,9 @@
331331
"text/markdown": [
332332
"```json\n",
333333
"{ 'node_id': 'MDM6UmVmMzE1NzEyNTg4OnJlZnMvaGVhZHMvbWFzdGVy',\n",
334-
" 'object': { 'sha': '17efbb7eb346f0f9161c227af9c8db93597321e2',\n",
334+
" 'object': { 'sha': '276fb019036d9fbc868313f243cc4bf88f8255a3',\n",
335335
" 'type': 'commit',\n",
336-
" 'url': 'https://api.github.com/repos/fastai/ghapi-test/git/commits/17efbb7eb346f0f9161c227af9c8db93597321e2'},\n",
336+
" 'url': 'https://api.github.com/repos/fastai/ghapi-test/git/commits/276fb019036d9fbc868313f243cc4bf88f8255a3'},\n",
337337
" 'ref': 'refs/heads/master',\n",
338338
" 'url': 'https://api.github.com/repos/fastai/ghapi-test/git/refs/heads/master'}\n",
339339
"```"
@@ -342,9 +342,9 @@
342342
"{'ref': 'refs/heads/master',\n",
343343
" 'node_id': 'MDM6UmVmMzE1NzEyNTg4OnJlZnMvaGVhZHMvbWFzdGVy',\n",
344344
" 'url': 'https://api.github.com/repos/fastai/ghapi-test/git/refs/heads/master',\n",
345-
" 'object': {'sha': '17efbb7eb346f0f9161c227af9c8db93597321e2',\n",
345+
" 'object': {'sha': '276fb019036d9fbc868313f243cc4bf88f8255a3',\n",
346346
" 'type': 'commit',\n",
347-
" 'url': 'https://api.github.com/repos/fastai/ghapi-test/git/commits/17efbb7eb346f0f9161c227af9c8db93597321e2'}}"
347+
" 'url': 'https://api.github.com/repos/fastai/ghapi-test/git/commits/276fb019036d9fbc868313f243cc4bf88f8255a3'}}"
348348
]
349349
},
350350
"execution_count": null,
@@ -367,7 +367,7 @@
367367
"text/markdown": [
368368
"---\n",
369369
"\n",
370-
"[source](https://github.com/fastai/ghapi/blob/master/ghapi/core.py#L145){target=\"_blank\" style=\"float:right; font-size:smaller\"}\n",
370+
"[source](https://github.com/fastai/ghapi/blob/master/ghapi/core.py#L147){target=\"_blank\" style=\"float:right; font-size:smaller\"}\n",
371371
"\n",
372372
"### GhApi.__getitem__\n",
373373
"\n",
@@ -378,7 +378,7 @@
378378
"text/plain": [
379379
"---\n",
380380
"\n",
381-
"[source](https://github.com/fastai/ghapi/blob/master/ghapi/core.py#L145){target=\"_blank\" style=\"float:right; font-size:smaller\"}\n",
381+
"[source](https://github.com/fastai/ghapi/blob/master/ghapi/core.py#L147){target=\"_blank\" style=\"float:right; font-size:smaller\"}\n",
382382
"\n",
383383
"### GhApi.__getitem__\n",
384384
"\n",
@@ -413,9 +413,9 @@
413413
"text/markdown": [
414414
"```json\n",
415415
"{ 'node_id': 'MDM6UmVmMzE1NzEyNTg4OnJlZnMvaGVhZHMvbWFzdGVy',\n",
416-
" 'object': { 'sha': '17efbb7eb346f0f9161c227af9c8db93597321e2',\n",
416+
" 'object': { 'sha': '276fb019036d9fbc868313f243cc4bf88f8255a3',\n",
417417
" 'type': 'commit',\n",
418-
" 'url': 'https://api.github.com/repos/fastai/ghapi-test/git/commits/17efbb7eb346f0f9161c227af9c8db93597321e2'},\n",
418+
" 'url': 'https://api.github.com/repos/fastai/ghapi-test/git/commits/276fb019036d9fbc868313f243cc4bf88f8255a3'},\n",
419419
" 'ref': 'refs/heads/master',\n",
420420
" 'url': 'https://api.github.com/repos/fastai/ghapi-test/git/refs/heads/master'}\n",
421421
"```"
@@ -424,9 +424,9 @@
424424
"{'ref': 'refs/heads/master',\n",
425425
" 'node_id': 'MDM6UmVmMzE1NzEyNTg4OnJlZnMvaGVhZHMvbWFzdGVy',\n",
426426
" 'url': 'https://api.github.com/repos/fastai/ghapi-test/git/refs/heads/master',\n",
427-
" 'object': {'sha': '17efbb7eb346f0f9161c227af9c8db93597321e2',\n",
427+
" 'object': {'sha': '276fb019036d9fbc868313f243cc4bf88f8255a3',\n",
428428
" 'type': 'commit',\n",
429-
" 'url': 'https://api.github.com/repos/fastai/ghapi-test/git/commits/17efbb7eb346f0f9161c227af9c8db93597321e2'}}"
429+
" 'url': 'https://api.github.com/repos/fastai/ghapi-test/git/commits/276fb019036d9fbc868313f243cc4bf88f8255a3'}}"
430430
]
431431
},
432432
"execution_count": null,
@@ -460,7 +460,7 @@
460460
{
461461
"data": {
462462
"text/plain": [
463-
"'17efbb7eb346f0f9161c227af9c8db93597321e2'"
463+
"'276fb019036d9fbc868313f243cc4bf88f8255a3'"
464464
]
465465
},
466466
"execution_count": null,
@@ -497,7 +497,7 @@
497497
"name": "stdout",
498498
"output_type": "stream",
499499
"text": [
500-
"Quota remaining: 4897 of 5000\n"
500+
"Quota remaining: 4996 of 5000\n"
501501
]
502502
},
503503
{
@@ -533,7 +533,7 @@
533533
{
534534
"data": {
535535
"text/plain": [
536-
"'4897'"
536+
"'4996'"
537537
]
538538
},
539539
"execution_count": null,
@@ -596,6 +596,7 @@
596596
"text/markdown": [
597597
"- [actions](https://docs.github.com/rest/reference/actions)\n",
598598
"- [activity](https://docs.github.com/rest/reference/activity)\n",
599+
"- [api_insights](https://docs.github.com/rest/reference/api-insights)\n",
599600
"- [apps](https://docs.github.com/rest/reference/apps)\n",
600601
"- [billing](https://docs.github.com/rest/reference/billing)\n",
601602
"- [checks](https://docs.github.com/rest/reference/checks)\n",
@@ -611,6 +612,7 @@
611612
"- [gists](https://docs.github.com/rest/reference/gists)\n",
612613
"- [git](https://docs.github.com/rest/reference/git)\n",
613614
"- [gitignore](https://docs.github.com/rest/reference/gitignore)\n",
615+
"- [hosted_compute](https://docs.github.com/rest/reference/hosted-compute)\n",
614616
"- [interactions](https://docs.github.com/rest/reference/interactions)\n",
615617
"- [issues](https://docs.github.com/rest/reference/issues)\n",
616618
"- [licenses](https://docs.github.com/rest/reference/licenses)\n",
@@ -620,6 +622,7 @@
620622
"- [oidc](https://docs.github.com/rest/reference/oidc)\n",
621623
"- [orgs](https://docs.github.com/rest/reference/orgs)\n",
622624
"- [packages](https://docs.github.com/rest/reference/packages)\n",
625+
"- [private_registries](https://docs.github.com/rest/reference/private-registries)\n",
623626
"- [projects](https://docs.github.com/rest/reference/projects)\n",
624627
"- [pulls](https://docs.github.com/rest/reference/pulls)\n",
625628
"- [rate_limit](https://docs.github.com/rest/reference/rate-limit)\n",
@@ -946,10 +949,18 @@
946949
"execution_count": null,
947950
"metadata": {},
948951
"outputs": [
952+
{
953+
"name": "stderr",
954+
"output_type": "stream",
955+
"text": [
956+
"/var/folders/hz/fg03h5c13x96l0g9420_qvlm0000gn/T/ipykernel_71467/3678695839.py:1: DeprecationWarning: datetime.datetime.utcnow() is deprecated and scheduled for removal in a future version. Use timezone-aware objects to represent datetimes in UTC: datetime.datetime.now(datetime.UTC).\n",
957+
" dt = date2gh(datetime.utcnow() - timedelta(weeks=4))\n"
958+
]
959+
},
949960
{
950961
"data": {
951962
"text/plain": [
952-
"3"
963+
"1"
953964
]
954965
},
955966
"execution_count": null,
@@ -984,7 +995,7 @@
984995
"name": "stdout",
985996
"output_type": "stream",
986997
"text": [
987-
"2024-08-27T06:49:29Z -> 2024-08-27 06:49:29\n"
998+
"2023-06-29T17:44:49Z -> 2023-06-29 17:44:49\n"
988999
]
9891000
}
9901001
],
@@ -1071,7 +1082,7 @@
10711082
{
10721083
"data": {
10731084
"text/plain": [
1074-
"('https://gist.github.com/jph00/d11f49a2c4515491f09d520e402ede75',\n",
1085+
"('https://gist.github.com/hamelsmu/2543b0c1699eafd0a36319a4a6284afa',\n",
10751086
" 'some content')"
10761087
]
10771088
},
@@ -1241,7 +1252,7 @@
12411252
"text/markdown": [
12421253
"---\n",
12431254
"\n",
1244-
"[source](https://github.com/fastai/ghapi/blob/master/ghapi/core.py#L171){target=\"_blank\" style=\"float:right; font-size:smaller\"}\n",
1255+
"[source](https://github.com/fastai/ghapi/blob/master/ghapi/core.py#L173){target=\"_blank\" style=\"float:right; font-size:smaller\"}\n",
12451256
"\n",
12461257
"### GhApi.delete_release\n",
12471258
"\n",
@@ -1252,7 +1263,7 @@
12521263
"text/plain": [
12531264
"---\n",
12541265
"\n",
1255-
"[source](https://github.com/fastai/ghapi/blob/master/ghapi/core.py#L171){target=\"_blank\" style=\"float:right; font-size:smaller\"}\n",
1266+
"[source](https://github.com/fastai/ghapi/blob/master/ghapi/core.py#L173){target=\"_blank\" style=\"float:right; font-size:smaller\"}\n",
12561267
"\n",
12571268
"### GhApi.delete_release\n",
12581269
"\n",
@@ -1707,7 +1718,23 @@
17071718
"cell_type": "code",
17081719
"execution_count": null,
17091720
"metadata": {},
1710-
"outputs": [],
1721+
"outputs": [
1722+
{
1723+
"data": {
1724+
"text/markdown": [
1725+
"```json\n",
1726+
"{}\n",
1727+
"```"
1728+
],
1729+
"text/plain": [
1730+
"{}"
1731+
]
1732+
},
1733+
"execution_count": null,
1734+
"metadata": {},
1735+
"output_type": "execute_result"
1736+
}
1737+
],
17111738
"source": [
17121739
"res = api.enable_pages(branch='new-branch', path='/')\n",
17131740
"\n",

90_build_lib.ipynb

Lines changed: 2 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@
161161
{
162162
"data": {
163163
"text/plain": [
164-
"GhMeta(path='/app/hook/config', verb='get', oper_id='apps/get-webhook-config-for-app', summary='Get a webhook configuration for an app', doc_url='rest/reference/apps#get-a-webhook-configuration-for-an-app', params=[], data=[], preview='')"
164+
"GhMeta(path='/app', verb='get', oper_id='apps/get-authenticated', summary='Get the authenticated app', doc_url='rest/apps/apps#get-the-authenticated-app', params=[], data=[], preview='')"
165165
]
166166
},
167167
"execution_count": null,
@@ -184,26 +184,7 @@
184184
"cell_type": "code",
185185
"execution_count": null,
186186
"metadata": {},
187-
"outputs": [
188-
{
189-
"name": "stdout",
190-
"output_type": "stream",
191-
"text": [
192-
"Converted 00_core.ipynb.\n",
193-
"Converted 01_actions.ipynb.\n",
194-
"Converted 02_auth.ipynb.\n",
195-
"Converted 03_page.ipynb.\n",
196-
"Converted 04_event.ipynb.\n",
197-
"Converted 10_cli.ipynb.\n",
198-
"Converted 50_fullapi.ipynb.\n",
199-
"Converted 80_tutorial_actions.ipynb.\n",
200-
"Converted 90_build_lib.ipynb.\n",
201-
"Converted Untitled.ipynb.\n",
202-
"Converted ghapi_demo.ipynb.\n",
203-
"Converted index.ipynb.\n"
204-
]
205-
}
206-
],
187+
"outputs": [],
207188
"source": [
208189
"#|hide\n",
209190
"from nbdev import nbdev_export\n",

0 commit comments

Comments
 (0)