|
199 | 199 | " return dict2obj(res)\n", |
200 | 200 | "\n", |
201 | 201 | " def __dir__(self): return super().__dir__() + list(self.groups)\n", |
202 | | - " def _repr_markdown_(self): return \"\\n\".join(f'- [{o}]({_docroot+o})' for o in sorted(self.groups))\n", |
| 202 | + " def _repr_markdown_(self): return \"\\n\".join(f\"- [{o}]({_docroot + o.replace('_', '-')})\" for o in sorted(self.groups))\n", |
203 | 203 | " def __getattr__(self,k): return self.groups[k] if 'groups' in vars(self) and k in self.groups else stop(AttributeError(k))\n", |
204 | 204 | "\n", |
205 | 205 | " def __getitem__(self, k):\n", |
|
282 | 282 | "- node_id: MDM6UmVmMzE1NzEyNTg4OnJlZnMvaGVhZHMvbWFzdGVy\n", |
283 | 283 | "- url: https://api.github.com/repos/fastai/ghapi-test/git/refs/heads/master\n", |
284 | 284 | "- object: \n", |
285 | | - " - sha: b1d038d0f7e289f8d6adb82b0d3d62c1a2125aff\n", |
| 285 | + " - sha: 4fabc2fb4686c8b742511247372c5bc9f5a788df\n", |
286 | 286 | " - type: commit\n", |
287 | | - " - url: https://api.github.com/repos/fastai/ghapi-test/git/commits/b1d038d0f7e289f8d6adb82b0d3d62c1a2125aff" |
| 287 | + " - url: https://api.github.com/repos/fastai/ghapi-test/git/commits/4fabc2fb4686c8b742511247372c5bc9f5a788df" |
288 | 288 | ], |
289 | 289 | "text/plain": [ |
290 | 290 | "- ref: refs/heads/master\n", |
291 | 291 | "- node_id: MDM6UmVmMzE1NzEyNTg4OnJlZnMvaGVhZHMvbWFzdGVy\n", |
292 | 292 | "- url: https://api.github.com/repos/fastai/ghapi-test/git/refs/heads/master\n", |
293 | 293 | "- object: \n", |
294 | | - " - sha: b1d038d0f7e289f8d6adb82b0d3d62c1a2125aff\n", |
| 294 | + " - sha: 4fabc2fb4686c8b742511247372c5bc9f5a788df\n", |
295 | 295 | " - type: commit\n", |
296 | | - " - url: https://api.github.com/repos/fastai/ghapi-test/git/commits/b1d038d0f7e289f8d6adb82b0d3d62c1a2125aff" |
| 296 | + " - url: https://api.github.com/repos/fastai/ghapi-test/git/commits/4fabc2fb4686c8b742511247372c5bc9f5a788df" |
297 | 297 | ] |
298 | 298 | }, |
299 | 299 | "execution_count": null, |
|
351 | 351 | "- node_id: MDM6UmVmMzE1NzEyNTg4OnJlZnMvaGVhZHMvbWFzdGVy\n", |
352 | 352 | "- url: https://api.github.com/repos/fastai/ghapi-test/git/refs/heads/master\n", |
353 | 353 | "- object: \n", |
354 | | - " - sha: b1d038d0f7e289f8d6adb82b0d3d62c1a2125aff\n", |
| 354 | + " - sha: 4fabc2fb4686c8b742511247372c5bc9f5a788df\n", |
355 | 355 | " - type: commit\n", |
356 | | - " - url: https://api.github.com/repos/fastai/ghapi-test/git/commits/b1d038d0f7e289f8d6adb82b0d3d62c1a2125aff" |
| 356 | + " - url: https://api.github.com/repos/fastai/ghapi-test/git/commits/4fabc2fb4686c8b742511247372c5bc9f5a788df" |
357 | 357 | ], |
358 | 358 | "text/plain": [ |
359 | 359 | "- ref: refs/heads/master\n", |
360 | 360 | "- node_id: MDM6UmVmMzE1NzEyNTg4OnJlZnMvaGVhZHMvbWFzdGVy\n", |
361 | 361 | "- url: https://api.github.com/repos/fastai/ghapi-test/git/refs/heads/master\n", |
362 | 362 | "- object: \n", |
363 | | - " - sha: b1d038d0f7e289f8d6adb82b0d3d62c1a2125aff\n", |
| 363 | + " - sha: 4fabc2fb4686c8b742511247372c5bc9f5a788df\n", |
364 | 364 | " - type: commit\n", |
365 | | - " - url: https://api.github.com/repos/fastai/ghapi-test/git/commits/b1d038d0f7e289f8d6adb82b0d3d62c1a2125aff" |
| 365 | + " - url: https://api.github.com/repos/fastai/ghapi-test/git/commits/4fabc2fb4686c8b742511247372c5bc9f5a788df" |
366 | 366 | ] |
367 | 367 | }, |
368 | 368 | "execution_count": null, |
|
397 | 397 | "name": "stdout", |
398 | 398 | "output_type": "stream", |
399 | 399 | "text": [ |
400 | | - "Quota remaining: 4953 of 5000\n" |
| 400 | + "Quota remaining: 4872 of 5000\n" |
401 | 401 | ] |
402 | 402 | }, |
403 | 403 | { |
|
433 | 433 | { |
434 | 434 | "data": { |
435 | 435 | "text/plain": [ |
436 | | - "'4953'" |
| 436 | + "'4872'" |
437 | 437 | ] |
438 | 438 | }, |
439 | 439 | "execution_count": null, |
|
499 | 499 | "- [apps](https://docs.github.com/en/free-pro-team@latest/rest/reference/apps)\n", |
500 | 500 | "- [billing](https://docs.github.com/en/free-pro-team@latest/rest/reference/billing)\n", |
501 | 501 | "- [checks](https://docs.github.com/en/free-pro-team@latest/rest/reference/checks)\n", |
502 | | - "- [code_scanning](https://docs.github.com/en/free-pro-team@latest/rest/reference/code_scanning)\n", |
503 | | - "- [codes_of_conduct](https://docs.github.com/en/free-pro-team@latest/rest/reference/codes_of_conduct)\n", |
| 502 | + "- [code_scanning](https://docs.github.com/en/free-pro-team@latest/rest/reference/code-scanning)\n", |
| 503 | + "- [codes_of_conduct](https://docs.github.com/en/free-pro-team@latest/rest/reference/codes-of-conduct)\n", |
504 | 504 | "- [emojis](https://docs.github.com/en/free-pro-team@latest/rest/reference/emojis)\n", |
505 | | - "- [enterprise_admin](https://docs.github.com/en/free-pro-team@latest/rest/reference/enterprise_admin)\n", |
| 505 | + "- [enterprise_admin](https://docs.github.com/en/free-pro-team@latest/rest/reference/enterprise-admin)\n", |
506 | 506 | "- [gists](https://docs.github.com/en/free-pro-team@latest/rest/reference/gists)\n", |
507 | 507 | "- [git](https://docs.github.com/en/free-pro-team@latest/rest/reference/git)\n", |
508 | 508 | "- [gitignore](https://docs.github.com/en/free-pro-team@latest/rest/reference/gitignore)\n", |
|
512 | 512 | "- [markdown](https://docs.github.com/en/free-pro-team@latest/rest/reference/markdown)\n", |
513 | 513 | "- [meta](https://docs.github.com/en/free-pro-team@latest/rest/reference/meta)\n", |
514 | 514 | "- [migrations](https://docs.github.com/en/free-pro-team@latest/rest/reference/migrations)\n", |
515 | | - "- [oauth_authorizations](https://docs.github.com/en/free-pro-team@latest/rest/reference/oauth_authorizations)\n", |
| 515 | + "- [oauth_authorizations](https://docs.github.com/en/free-pro-team@latest/rest/reference/oauth-authorizations)\n", |
516 | 516 | "- [orgs](https://docs.github.com/en/free-pro-team@latest/rest/reference/orgs)\n", |
517 | 517 | "- [projects](https://docs.github.com/en/free-pro-team@latest/rest/reference/projects)\n", |
518 | 518 | "- [pulls](https://docs.github.com/en/free-pro-team@latest/rest/reference/pulls)\n", |
519 | | - "- [rate_limit](https://docs.github.com/en/free-pro-team@latest/rest/reference/rate_limit)\n", |
| 519 | + "- [rate_limit](https://docs.github.com/en/free-pro-team@latest/rest/reference/rate-limit)\n", |
520 | 520 | "- [reactions](https://docs.github.com/en/free-pro-team@latest/rest/reference/reactions)\n", |
521 | 521 | "- [repos](https://docs.github.com/en/free-pro-team@latest/rest/reference/repos)\n", |
522 | 522 | "- [scim](https://docs.github.com/en/free-pro-team@latest/rest/reference/scim)\n", |
523 | 523 | "- [search](https://docs.github.com/en/free-pro-team@latest/rest/reference/search)\n", |
| 524 | + "- [secret_scanning](https://docs.github.com/en/free-pro-team@latest/rest/reference/secret-scanning)\n", |
524 | 525 | "- [teams](https://docs.github.com/en/free-pro-team@latest/rest/reference/teams)\n", |
525 | 526 | "- [users](https://docs.github.com/en/free-pro-team@latest/rest/reference/users)" |
526 | 527 | ], |
527 | 528 | "text/plain": [ |
528 | | - "<__main__.GhApi at 0x7f35f1167890>" |
| 529 | + "<__main__.GhApi at 0x7fd5184f73a0>" |
529 | 530 | ] |
530 | 531 | }, |
531 | 532 | "execution_count": null, |
|
537 | 538 | "api" |
538 | 539 | ] |
539 | 540 | }, |
| 541 | + { |
| 542 | + "cell_type": "code", |
| 543 | + "execution_count": null, |
| 544 | + "metadata": {}, |
| 545 | + "outputs": [ |
| 546 | + { |
| 547 | + "data": { |
| 548 | + "text/markdown": [ |
| 549 | + "- [codes-of-conduct.get_all_codes_of_conduct](https://docs.github.com/v3/codes_of_conduct/#get-all-codes-of-conduct)(): *Get all codes of conduct*\n", |
| 550 | + "- [codes-of-conduct.get_conduct_code](https://docs.github.com/v3/codes_of_conduct/#get-a-code-of-conduct)(key): *Get a code of conduct*\n", |
| 551 | + "- [codes-of-conduct.get_for_repo](https://docs.github.com/v3/codes_of_conduct/#get-the-code-of-conduct-for-a-repository)(): *Get the code of conduct for a repository*" |
| 552 | + ], |
| 553 | + "text/plain": [ |
| 554 | + "<__main__._GhVerbGroup at 0x7fd5184f73d0>" |
| 555 | + ] |
| 556 | + }, |
| 557 | + "execution_count": null, |
| 558 | + "metadata": {}, |
| 559 | + "output_type": "execute_result" |
| 560 | + } |
| 561 | + ], |
| 562 | + "source": [ |
| 563 | + "api.codes_of_conduct" |
| 564 | + ] |
| 565 | + }, |
540 | 566 | { |
541 | 567 | "cell_type": "markdown", |
542 | 568 | "metadata": {}, |
|
675 | 701 | "- [git.get_tree](https://docs.github.com/rest/reference/git#get-a-tree)(tree_sha, recursive): *Get a tree*" |
676 | 702 | ], |
677 | 703 | "text/plain": [ |
678 | | - "<__main__._GhVerbGroup at 0x7f35f116b590>" |
| 704 | + "<__main__._GhVerbGroup at 0x7fd5184e58b0>" |
679 | 705 | ] |
680 | 706 | }, |
681 | 707 | "execution_count": null, |
|
811 | 837 | { |
812 | 838 | "data": { |
813 | 839 | "text/plain": [ |
814 | | - "4" |
| 840 | + "2" |
815 | 841 | ] |
816 | 842 | }, |
817 | 843 | "execution_count": null, |
|
846 | 872 | "name": "stdout", |
847 | 873 | "output_type": "stream", |
848 | 874 | "text": [ |
849 | | - "2020-11-25T09:33:08Z -> 2020-11-25 09:33:08\n" |
| 875 | + "2020-12-28T12:52:59Z -> 2020-12-28 12:52:59\n" |
850 | 876 | ] |
851 | 877 | } |
852 | 878 | ], |
|
1441 | 1467 | "Converted 01_actions.ipynb.\n", |
1442 | 1468 | "Converted 02_auth.ipynb.\n", |
1443 | 1469 | "Converted 03_page.ipynb.\n", |
| 1470 | + "Converted 04_event.ipynb.\n", |
1444 | 1471 | "Converted 10_cli.ipynb.\n", |
1445 | 1472 | "Converted 50_fullapi.ipynb.\n", |
| 1473 | + "Converted 80_tutorial_actions.ipynb.\n", |
1446 | 1474 | "Converted 90_build_lib.ipynb.\n", |
1447 | | - "Converted event.ipynb.\n", |
1448 | | - "Converted index.ipynb.\n", |
1449 | | - "Converted tutorial_actions.ipynb.\n" |
| 1475 | + "Converted Untitled.ipynb.\n", |
| 1476 | + "Converted ghapi demo.ipynb.\n", |
| 1477 | + "Converted index.ipynb.\n" |
1450 | 1478 | ] |
1451 | 1479 | } |
1452 | 1480 | ], |
|
0 commit comments