|
293 | 293 | { |
294 | 294 | "data": { |
295 | 295 | "text/markdown": [ |
296 | | - "- ref: refs/heads/master\n", |
297 | | - "- node_id: MDM6UmVmMzE1NzEyNTg4OnJlZnMvaGVhZHMvbWFzdGVy\n", |
298 | | - "- url: https://api.github.com/repos/fastai/ghapi-test/git/refs/heads/master\n", |
299 | | - "- object: \n", |
300 | | - " - sha: d0605f3abc070f4790501db038c24223379007a5\n", |
301 | | - " - type: commit\n", |
302 | | - " - url: https://api.github.com/repos/fastai/ghapi-test/git/commits/d0605f3abc070f4790501db038c24223379007a5" |
| 296 | + "```json\n", |
| 297 | + "{ 'node_id': 'MDM6UmVmMzE1NzEyNTg4OnJlZnMvaGVhZHMvbWFzdGVy',\n", |
| 298 | + " 'object': { 'sha': 'a863d693772d5e76c05d4065c3f21a0e26e96e6b',\n", |
| 299 | + " 'type': 'commit',\n", |
| 300 | + " 'url': 'https://api.github.com/repos/fastai/ghapi-test/git/commits/a863d693772d5e76c05d4065c3f21a0e26e96e6b'},\n", |
| 301 | + " 'ref': 'refs/heads/master',\n", |
| 302 | + " 'url': 'https://api.github.com/repos/fastai/ghapi-test/git/refs/heads/master'}\n", |
| 303 | + "```" |
303 | 304 | ], |
304 | 305 | "text/plain": [ |
305 | | - "- ref: refs/heads/master\n", |
306 | | - "- node_id: MDM6UmVmMzE1NzEyNTg4OnJlZnMvaGVhZHMvbWFzdGVy\n", |
307 | | - "- url: https://api.github.com/repos/fastai/ghapi-test/git/refs/heads/master\n", |
308 | | - "- object: \n", |
309 | | - " - sha: d0605f3abc070f4790501db038c24223379007a5\n", |
310 | | - " - type: commit\n", |
311 | | - " - url: https://api.github.com/repos/fastai/ghapi-test/git/commits/d0605f3abc070f4790501db038c24223379007a5" |
| 306 | + "{'ref': 'refs/heads/master',\n", |
| 307 | + " 'node_id': 'MDM6UmVmMzE1NzEyNTg4OnJlZnMvaGVhZHMvbWFzdGVy',\n", |
| 308 | + " 'url': 'https://api.github.com/repos/fastai/ghapi-test/git/refs/heads/master',\n", |
| 309 | + " 'object': {'sha': 'a863d693772d5e76c05d4065c3f21a0e26e96e6b',\n", |
| 310 | + " 'type': 'commit',\n", |
| 311 | + " 'url': 'https://api.github.com/repos/fastai/ghapi-test/git/commits/a863d693772d5e76c05d4065c3f21a0e26e96e6b'}}" |
312 | 312 | ] |
313 | 313 | }, |
314 | 314 | "execution_count": null, |
|
329 | 329 | { |
330 | 330 | "data": { |
331 | 331 | "text/markdown": [ |
332 | | - "<h4 id=\"GhApi.__getitem__\" class=\"doc_header\"><code>GhApi.__getitem__</code><a href=\"__main__.py#L39\" class=\"source_link\" style=\"float:right\">[source]</a></h4>\n", |
| 332 | + "<h4 id=\"GhApi.__getitem__\" class=\"doc_header\"><code>GhApi.__getitem__</code><a href=\"__main__.py#L40\" class=\"source_link\" style=\"float:right\">[source]</a></h4>\n", |
333 | 333 | "\n", |
334 | 334 | "> <code>GhApi.__getitem__</code>(**`k`**)\n", |
335 | 335 | "\n", |
|
362 | 362 | { |
363 | 363 | "data": { |
364 | 364 | "text/markdown": [ |
365 | | - "- ref: refs/heads/master\n", |
366 | | - "- node_id: MDM6UmVmMzE1NzEyNTg4OnJlZnMvaGVhZHMvbWFzdGVy\n", |
367 | | - "- url: https://api.github.com/repos/fastai/ghapi-test/git/refs/heads/master\n", |
368 | | - "- object: \n", |
369 | | - " - sha: d0605f3abc070f4790501db038c24223379007a5\n", |
370 | | - " - type: commit\n", |
371 | | - " - url: https://api.github.com/repos/fastai/ghapi-test/git/commits/d0605f3abc070f4790501db038c24223379007a5" |
| 365 | + "```json\n", |
| 366 | + "{ 'node_id': 'MDM6UmVmMzE1NzEyNTg4OnJlZnMvaGVhZHMvbWFzdGVy',\n", |
| 367 | + " 'object': { 'sha': 'a863d693772d5e76c05d4065c3f21a0e26e96e6b',\n", |
| 368 | + " 'type': 'commit',\n", |
| 369 | + " 'url': 'https://api.github.com/repos/fastai/ghapi-test/git/commits/a863d693772d5e76c05d4065c3f21a0e26e96e6b'},\n", |
| 370 | + " 'ref': 'refs/heads/master',\n", |
| 371 | + " 'url': 'https://api.github.com/repos/fastai/ghapi-test/git/refs/heads/master'}\n", |
| 372 | + "```" |
372 | 373 | ], |
373 | 374 | "text/plain": [ |
374 | | - "- ref: refs/heads/master\n", |
375 | | - "- node_id: MDM6UmVmMzE1NzEyNTg4OnJlZnMvaGVhZHMvbWFzdGVy\n", |
376 | | - "- url: https://api.github.com/repos/fastai/ghapi-test/git/refs/heads/master\n", |
377 | | - "- object: \n", |
378 | | - " - sha: d0605f3abc070f4790501db038c24223379007a5\n", |
379 | | - " - type: commit\n", |
380 | | - " - url: https://api.github.com/repos/fastai/ghapi-test/git/commits/d0605f3abc070f4790501db038c24223379007a5" |
| 375 | + "{'ref': 'refs/heads/master',\n", |
| 376 | + " 'node_id': 'MDM6UmVmMzE1NzEyNTg4OnJlZnMvaGVhZHMvbWFzdGVy',\n", |
| 377 | + " 'url': 'https://api.github.com/repos/fastai/ghapi-test/git/refs/heads/master',\n", |
| 378 | + " 'object': {'sha': 'a863d693772d5e76c05d4065c3f21a0e26e96e6b',\n", |
| 379 | + " 'type': 'commit',\n", |
| 380 | + " 'url': 'https://api.github.com/repos/fastai/ghapi-test/git/commits/a863d693772d5e76c05d4065c3f21a0e26e96e6b'}}" |
381 | 381 | ] |
382 | 382 | }, |
383 | 383 | "execution_count": null, |
|
411 | 411 | { |
412 | 412 | "data": { |
413 | 413 | "text/plain": [ |
414 | | - "'d0605f3abc070f4790501db038c24223379007a5'" |
| 414 | + "'a863d693772d5e76c05d4065c3f21a0e26e96e6b'" |
415 | 415 | ] |
416 | 416 | }, |
417 | 417 | "execution_count": null, |
|
448 | 448 | "name": "stdout", |
449 | 449 | "output_type": "stream", |
450 | 450 | "text": [ |
451 | | - "Quota remaining: 4991 of 5000\n" |
| 451 | + "Quota remaining: 4874 of 5000\n" |
452 | 452 | ] |
453 | 453 | }, |
454 | 454 | { |
|
484 | 484 | { |
485 | 485 | "data": { |
486 | 486 | "text/plain": [ |
487 | | - "'4991'" |
| 487 | + "'4874'" |
488 | 488 | ] |
489 | 489 | }, |
490 | 490 | "execution_count": null, |
|
552 | 552 | "- [checks](https://docs.github.com/rest/reference/checks)\n", |
553 | 553 | "- [code_scanning](https://docs.github.com/rest/reference/code-scanning)\n", |
554 | 554 | "- [codes_of_conduct](https://docs.github.com/rest/reference/codes-of-conduct)\n", |
| 555 | + "- [codespaces](https://docs.github.com/rest/reference/codespaces)\n", |
| 556 | + "- [dependabot](https://docs.github.com/rest/reference/dependabot)\n", |
| 557 | + "- [dependency_graph](https://docs.github.com/rest/reference/dependency-graph)\n", |
555 | 558 | "- [emojis](https://docs.github.com/rest/reference/emojis)\n", |
556 | 559 | "- [enterprise_admin](https://docs.github.com/rest/reference/enterprise-admin)\n", |
557 | 560 | "- [gists](https://docs.github.com/rest/reference/gists)\n", |
|
564 | 567 | "- [meta](https://docs.github.com/rest/reference/meta)\n", |
565 | 568 | "- [migrations](https://docs.github.com/rest/reference/migrations)\n", |
566 | 569 | "- [oauth_authorizations](https://docs.github.com/rest/reference/oauth-authorizations)\n", |
| 570 | + "- [oidc](https://docs.github.com/rest/reference/oidc)\n", |
567 | 571 | "- [orgs](https://docs.github.com/rest/reference/orgs)\n", |
568 | 572 | "- [packages](https://docs.github.com/rest/reference/packages)\n", |
569 | 573 | "- [projects](https://docs.github.com/rest/reference/projects)\n", |
|
578 | 582 | "- [users](https://docs.github.com/rest/reference/users)" |
579 | 583 | ], |
580 | 584 | "text/plain": [ |
581 | | - "<__main__.GhApi at 0x11e204eb0>" |
| 585 | + "<__main__.GhApi at 0x14af1cd60>" |
582 | 586 | ] |
583 | 587 | }, |
584 | 588 | "execution_count": null, |
|
602 | 606 | "- [codes-of-conduct.get_conduct_code](https://docs.github.com/rest/reference/codes-of-conduct#get-a-code-of-conduct)(key): *Get a code of conduct*" |
603 | 607 | ], |
604 | 608 | "text/plain": [ |
605 | | - "<__main__._GhVerbGroup at 0x11e204940>" |
| 609 | + "<__main__._GhVerbGroup at 0x14af1abe0>" |
606 | 610 | ] |
607 | 611 | }, |
608 | 612 | "execution_count": null, |
|
752 | 756 | "- [git.get_tree](https://docs.github.com/rest/reference/git#get-a-tree)(tree_sha, recursive): *Get a tree*" |
753 | 757 | ], |
754 | 758 | "text/plain": [ |
755 | | - "<__main__._GhVerbGroup at 0x11e211d30>" |
| 759 | + "<__main__._GhVerbGroup at 0x14af1b550>" |
756 | 760 | ] |
757 | 761 | }, |
758 | 762 | "execution_count": null, |
|
1028 | 1032 | { |
1029 | 1033 | "data": { |
1030 | 1034 | "text/plain": [ |
1031 | | - "('https://gist.github.com/77c65673fbf13079a63c4d525e03e043', 'some content')" |
| 1035 | + "('https://gist.github.com/7090f1687eea491992b30ec0333daf4e', 'some content')" |
1032 | 1036 | ] |
1033 | 1037 | }, |
1034 | 1038 | "execution_count": null, |
|
1443 | 1447 | "```json\n", |
1444 | 1448 | "{ 'mode': '100644',\n", |
1445 | 1449 | " 'path': 'README.md',\n", |
1446 | | - " 'sha': '9b33a4362dda251455f7e4d99554467d1e6ba024',\n", |
1447 | | - " 'size': 66,\n", |
| 1450 | + " 'sha': 'eaea0f2698e76c75602058bf4e2e9fd7940ac4e3',\n", |
| 1451 | + " 'size': 72,\n", |
1448 | 1452 | " 'type': 'blob',\n", |
1449 | | - " 'url': 'https://api.github.com/repos/fastai/ghapi-test/git/blobs/9b33a4362dda251455f7e4d99554467d1e6ba024'}\n", |
| 1453 | + " 'url': 'https://api.github.com/repos/fastai/ghapi-test/git/blobs/eaea0f2698e76c75602058bf4e2e9fd7940ac4e3'}\n", |
1450 | 1454 | "```" |
1451 | 1455 | ], |
1452 | 1456 | "text/plain": [ |
1453 | 1457 | "{'path': 'README.md',\n", |
1454 | 1458 | " 'mode': '100644',\n", |
1455 | 1459 | " 'type': 'blob',\n", |
1456 | | - " 'sha': '9b33a4362dda251455f7e4d99554467d1e6ba024',\n", |
1457 | | - " 'size': 66,\n", |
1458 | | - " 'url': 'https://api.github.com/repos/fastai/ghapi-test/git/blobs/9b33a4362dda251455f7e4d99554467d1e6ba024'}" |
| 1460 | + " 'sha': 'eaea0f2698e76c75602058bf4e2e9fd7940ac4e3',\n", |
| 1461 | + " 'size': 72,\n", |
| 1462 | + " 'url': 'https://api.github.com/repos/fastai/ghapi-test/git/blobs/eaea0f2698e76c75602058bf4e2e9fd7940ac4e3'}" |
1459 | 1463 | ] |
1460 | 1464 | }, |
1461 | 1465 | "execution_count": null, |
|
1645 | 1649 | "cell_type": "code", |
1646 | 1650 | "execution_count": null, |
1647 | 1651 | "metadata": {}, |
1648 | | - "outputs": [], |
| 1652 | + "outputs": [ |
| 1653 | + { |
| 1654 | + "data": { |
| 1655 | + "text/markdown": [ |
| 1656 | + "```json\n", |
| 1657 | + "{}\n", |
| 1658 | + "```" |
| 1659 | + ], |
| 1660 | + "text/plain": [ |
| 1661 | + "{}" |
| 1662 | + ] |
| 1663 | + }, |
| 1664 | + "execution_count": null, |
| 1665 | + "metadata": {}, |
| 1666 | + "output_type": "execute_result" |
| 1667 | + } |
| 1668 | + ], |
1649 | 1669 | "source": [ |
1650 | 1670 | "res = api.enable_pages(branch='new-branch', path='/')\n", |
1651 | 1671 | "test_eq(res.source.branch, 'new-branch')\n", |
|
0 commit comments