|
272 | 272 | "text/markdown": [ |
273 | 273 | "---\n", |
274 | 274 | "\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", |
276 | 276 | "\n", |
277 | 277 | "### GhApi.__call__\n", |
278 | 278 | "\n", |
|
285 | 285 | "text/plain": [ |
286 | 286 | "---\n", |
287 | 287 | "\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", |
289 | 289 | "\n", |
290 | 290 | "### GhApi.__call__\n", |
291 | 291 | "\n", |
|
331 | 331 | "text/markdown": [ |
332 | 332 | "```json\n", |
333 | 333 | "{ 'node_id': 'MDM6UmVmMzE1NzEyNTg4OnJlZnMvaGVhZHMvbWFzdGVy',\n", |
334 | | - " 'object': { 'sha': '17efbb7eb346f0f9161c227af9c8db93597321e2',\n", |
| 334 | + " 'object': { 'sha': '276fb019036d9fbc868313f243cc4bf88f8255a3',\n", |
335 | 335 | " '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", |
337 | 337 | " 'ref': 'refs/heads/master',\n", |
338 | 338 | " 'url': 'https://api.github.com/repos/fastai/ghapi-test/git/refs/heads/master'}\n", |
339 | 339 | "```" |
|
342 | 342 | "{'ref': 'refs/heads/master',\n", |
343 | 343 | " 'node_id': 'MDM6UmVmMzE1NzEyNTg4OnJlZnMvaGVhZHMvbWFzdGVy',\n", |
344 | 344 | " 'url': 'https://api.github.com/repos/fastai/ghapi-test/git/refs/heads/master',\n", |
345 | | - " 'object': {'sha': '17efbb7eb346f0f9161c227af9c8db93597321e2',\n", |
| 345 | + " 'object': {'sha': '276fb019036d9fbc868313f243cc4bf88f8255a3',\n", |
346 | 346 | " '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'}}" |
348 | 348 | ] |
349 | 349 | }, |
350 | 350 | "execution_count": null, |
|
367 | 367 | "text/markdown": [ |
368 | 368 | "---\n", |
369 | 369 | "\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", |
371 | 371 | "\n", |
372 | 372 | "### GhApi.__getitem__\n", |
373 | 373 | "\n", |
|
378 | 378 | "text/plain": [ |
379 | 379 | "---\n", |
380 | 380 | "\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", |
382 | 382 | "\n", |
383 | 383 | "### GhApi.__getitem__\n", |
384 | 384 | "\n", |
|
413 | 413 | "text/markdown": [ |
414 | 414 | "```json\n", |
415 | 415 | "{ 'node_id': 'MDM6UmVmMzE1NzEyNTg4OnJlZnMvaGVhZHMvbWFzdGVy',\n", |
416 | | - " 'object': { 'sha': '17efbb7eb346f0f9161c227af9c8db93597321e2',\n", |
| 416 | + " 'object': { 'sha': '276fb019036d9fbc868313f243cc4bf88f8255a3',\n", |
417 | 417 | " '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", |
419 | 419 | " 'ref': 'refs/heads/master',\n", |
420 | 420 | " 'url': 'https://api.github.com/repos/fastai/ghapi-test/git/refs/heads/master'}\n", |
421 | 421 | "```" |
|
424 | 424 | "{'ref': 'refs/heads/master',\n", |
425 | 425 | " 'node_id': 'MDM6UmVmMzE1NzEyNTg4OnJlZnMvaGVhZHMvbWFzdGVy',\n", |
426 | 426 | " 'url': 'https://api.github.com/repos/fastai/ghapi-test/git/refs/heads/master',\n", |
427 | | - " 'object': {'sha': '17efbb7eb346f0f9161c227af9c8db93597321e2',\n", |
| 427 | + " 'object': {'sha': '276fb019036d9fbc868313f243cc4bf88f8255a3',\n", |
428 | 428 | " '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'}}" |
430 | 430 | ] |
431 | 431 | }, |
432 | 432 | "execution_count": null, |
|
460 | 460 | { |
461 | 461 | "data": { |
462 | 462 | "text/plain": [ |
463 | | - "'17efbb7eb346f0f9161c227af9c8db93597321e2'" |
| 463 | + "'276fb019036d9fbc868313f243cc4bf88f8255a3'" |
464 | 464 | ] |
465 | 465 | }, |
466 | 466 | "execution_count": null, |
|
497 | 497 | "name": "stdout", |
498 | 498 | "output_type": "stream", |
499 | 499 | "text": [ |
500 | | - "Quota remaining: 4897 of 5000\n" |
| 500 | + "Quota remaining: 4996 of 5000\n" |
501 | 501 | ] |
502 | 502 | }, |
503 | 503 | { |
|
533 | 533 | { |
534 | 534 | "data": { |
535 | 535 | "text/plain": [ |
536 | | - "'4897'" |
| 536 | + "'4996'" |
537 | 537 | ] |
538 | 538 | }, |
539 | 539 | "execution_count": null, |
|
596 | 596 | "text/markdown": [ |
597 | 597 | "- [actions](https://docs.github.com/rest/reference/actions)\n", |
598 | 598 | "- [activity](https://docs.github.com/rest/reference/activity)\n", |
| 599 | + "- [api_insights](https://docs.github.com/rest/reference/api-insights)\n", |
599 | 600 | "- [apps](https://docs.github.com/rest/reference/apps)\n", |
600 | 601 | "- [billing](https://docs.github.com/rest/reference/billing)\n", |
601 | 602 | "- [checks](https://docs.github.com/rest/reference/checks)\n", |
|
611 | 612 | "- [gists](https://docs.github.com/rest/reference/gists)\n", |
612 | 613 | "- [git](https://docs.github.com/rest/reference/git)\n", |
613 | 614 | "- [gitignore](https://docs.github.com/rest/reference/gitignore)\n", |
| 615 | + "- [hosted_compute](https://docs.github.com/rest/reference/hosted-compute)\n", |
614 | 616 | "- [interactions](https://docs.github.com/rest/reference/interactions)\n", |
615 | 617 | "- [issues](https://docs.github.com/rest/reference/issues)\n", |
616 | 618 | "- [licenses](https://docs.github.com/rest/reference/licenses)\n", |
|
620 | 622 | "- [oidc](https://docs.github.com/rest/reference/oidc)\n", |
621 | 623 | "- [orgs](https://docs.github.com/rest/reference/orgs)\n", |
622 | 624 | "- [packages](https://docs.github.com/rest/reference/packages)\n", |
| 625 | + "- [private_registries](https://docs.github.com/rest/reference/private-registries)\n", |
623 | 626 | "- [projects](https://docs.github.com/rest/reference/projects)\n", |
624 | 627 | "- [pulls](https://docs.github.com/rest/reference/pulls)\n", |
625 | 628 | "- [rate_limit](https://docs.github.com/rest/reference/rate-limit)\n", |
|
946 | 949 | "execution_count": null, |
947 | 950 | "metadata": {}, |
948 | 951 | "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 | + }, |
949 | 960 | { |
950 | 961 | "data": { |
951 | 962 | "text/plain": [ |
952 | | - "3" |
| 963 | + "1" |
953 | 964 | ] |
954 | 965 | }, |
955 | 966 | "execution_count": null, |
|
984 | 995 | "name": "stdout", |
985 | 996 | "output_type": "stream", |
986 | 997 | "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" |
988 | 999 | ] |
989 | 1000 | } |
990 | 1001 | ], |
|
1071 | 1082 | { |
1072 | 1083 | "data": { |
1073 | 1084 | "text/plain": [ |
1074 | | - "('https://gist.github.com/jph00/d11f49a2c4515491f09d520e402ede75',\n", |
| 1085 | + "('https://gist.github.com/hamelsmu/2543b0c1699eafd0a36319a4a6284afa',\n", |
1075 | 1086 | " 'some content')" |
1076 | 1087 | ] |
1077 | 1088 | }, |
|
1241 | 1252 | "text/markdown": [ |
1242 | 1253 | "---\n", |
1243 | 1254 | "\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", |
1245 | 1256 | "\n", |
1246 | 1257 | "### GhApi.delete_release\n", |
1247 | 1258 | "\n", |
|
1252 | 1263 | "text/plain": [ |
1253 | 1264 | "---\n", |
1254 | 1265 | "\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", |
1256 | 1267 | "\n", |
1257 | 1268 | "### GhApi.delete_release\n", |
1258 | 1269 | "\n", |
|
1707 | 1718 | "cell_type": "code", |
1708 | 1719 | "execution_count": null, |
1709 | 1720 | "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 | + ], |
1711 | 1738 | "source": [ |
1712 | 1739 | "res = api.enable_pages(branch='new-branch', path='/')\n", |
1713 | 1740 | "\n", |
|
0 commit comments