|
109 | 109 | "class _GhVerb(_GhObj):\n", |
110 | 110 | " __slots__ = 'path,verb,tag,name,summary,url,route_ps,params,data,preview,client,__doc__'.split(',')\n", |
111 | 111 | " def __init__(self, path, verb, oper, summary, url, params, data, preview, client, kwargs):\n", |
112 | | - " tag,name = oper.split('/')\n", |
| 112 | + " tag,*name = oper.split('/')\n", |
| 113 | + " name = '__'.join(name)\n", |
113 | 114 | " name = name.replace('-','_')\n", |
114 | 115 | " path,_,_ = partial_format(path, **kwargs)\n", |
115 | 116 | " route_ps = stringfmt_names(path)\n", |
|
290 | 291 | "- node_id: MDM6UmVmMzE1NzEyNTg4OnJlZnMvaGVhZHMvbWFzdGVy\n", |
291 | 292 | "- url: https://api.github.com/repos/fastai/ghapi-test/git/refs/heads/master\n", |
292 | 293 | "- object: \n", |
293 | | - " - sha: 4fabc2fb4686c8b742511247372c5bc9f5a788df\n", |
| 294 | + " - sha: 77d2b8f95ca0ee35a4b24165008d698653459d5d\n", |
294 | 295 | " - type: commit\n", |
295 | | - " - url: https://api.github.com/repos/fastai/ghapi-test/git/commits/4fabc2fb4686c8b742511247372c5bc9f5a788df" |
| 296 | + " - url: https://api.github.com/repos/fastai/ghapi-test/git/commits/77d2b8f95ca0ee35a4b24165008d698653459d5d" |
296 | 297 | ], |
297 | 298 | "text/plain": [ |
298 | 299 | "- ref: refs/heads/master\n", |
299 | 300 | "- node_id: MDM6UmVmMzE1NzEyNTg4OnJlZnMvaGVhZHMvbWFzdGVy\n", |
300 | 301 | "- url: https://api.github.com/repos/fastai/ghapi-test/git/refs/heads/master\n", |
301 | 302 | "- object: \n", |
302 | | - " - sha: 4fabc2fb4686c8b742511247372c5bc9f5a788df\n", |
| 303 | + " - sha: 77d2b8f95ca0ee35a4b24165008d698653459d5d\n", |
303 | 304 | " - type: commit\n", |
304 | | - " - url: https://api.github.com/repos/fastai/ghapi-test/git/commits/4fabc2fb4686c8b742511247372c5bc9f5a788df" |
| 305 | + " - url: https://api.github.com/repos/fastai/ghapi-test/git/commits/77d2b8f95ca0ee35a4b24165008d698653459d5d" |
305 | 306 | ] |
306 | 307 | }, |
307 | 308 | "execution_count": null, |
|
359 | 360 | "- node_id: MDM6UmVmMzE1NzEyNTg4OnJlZnMvaGVhZHMvbWFzdGVy\n", |
360 | 361 | "- url: https://api.github.com/repos/fastai/ghapi-test/git/refs/heads/master\n", |
361 | 362 | "- object: \n", |
362 | | - " - sha: 4fabc2fb4686c8b742511247372c5bc9f5a788df\n", |
| 363 | + " - sha: 77d2b8f95ca0ee35a4b24165008d698653459d5d\n", |
363 | 364 | " - type: commit\n", |
364 | | - " - url: https://api.github.com/repos/fastai/ghapi-test/git/commits/4fabc2fb4686c8b742511247372c5bc9f5a788df" |
| 365 | + " - url: https://api.github.com/repos/fastai/ghapi-test/git/commits/77d2b8f95ca0ee35a4b24165008d698653459d5d" |
365 | 366 | ], |
366 | 367 | "text/plain": [ |
367 | 368 | "- ref: refs/heads/master\n", |
368 | 369 | "- node_id: MDM6UmVmMzE1NzEyNTg4OnJlZnMvaGVhZHMvbWFzdGVy\n", |
369 | 370 | "- url: https://api.github.com/repos/fastai/ghapi-test/git/refs/heads/master\n", |
370 | 371 | "- object: \n", |
371 | | - " - sha: 4fabc2fb4686c8b742511247372c5bc9f5a788df\n", |
| 372 | + " - sha: 77d2b8f95ca0ee35a4b24165008d698653459d5d\n", |
372 | 373 | " - type: commit\n", |
373 | | - " - url: https://api.github.com/repos/fastai/ghapi-test/git/commits/4fabc2fb4686c8b742511247372c5bc9f5a788df" |
| 374 | + " - url: https://api.github.com/repos/fastai/ghapi-test/git/commits/77d2b8f95ca0ee35a4b24165008d698653459d5d" |
374 | 375 | ] |
375 | 376 | }, |
376 | 377 | "execution_count": null, |
|
405 | 406 | "name": "stdout", |
406 | 407 | "output_type": "stream", |
407 | 408 | "text": [ |
408 | | - "Quota remaining: 4872 of 5000\n" |
| 409 | + "Quota remaining: 57 of 60\n" |
409 | 410 | ] |
410 | 411 | }, |
411 | 412 | { |
|
441 | 442 | { |
442 | 443 | "data": { |
443 | 444 | "text/plain": [ |
444 | | - "'4872'" |
| 445 | + "'57'" |
445 | 446 | ] |
446 | 447 | }, |
447 | 448 | "execution_count": null, |
|
505 | 506 | "- [actions](https://docs.github.com/en/free-pro-team@latest/rest/reference/actions)\n", |
506 | 507 | "- [activity](https://docs.github.com/en/free-pro-team@latest/rest/reference/activity)\n", |
507 | 508 | "- [apps](https://docs.github.com/en/free-pro-team@latest/rest/reference/apps)\n", |
| 509 | + "- [audit_log](https://docs.github.com/en/free-pro-team@latest/rest/reference/audit-log)\n", |
508 | 510 | "- [billing](https://docs.github.com/en/free-pro-team@latest/rest/reference/billing)\n", |
509 | 511 | "- [checks](https://docs.github.com/en/free-pro-team@latest/rest/reference/checks)\n", |
510 | 512 | "- [code_scanning](https://docs.github.com/en/free-pro-team@latest/rest/reference/code-scanning)\n", |
|
522 | 524 | "- [migrations](https://docs.github.com/en/free-pro-team@latest/rest/reference/migrations)\n", |
523 | 525 | "- [oauth_authorizations](https://docs.github.com/en/free-pro-team@latest/rest/reference/oauth-authorizations)\n", |
524 | 526 | "- [orgs](https://docs.github.com/en/free-pro-team@latest/rest/reference/orgs)\n", |
| 527 | + "- [packages](https://docs.github.com/en/free-pro-team@latest/rest/reference/packages)\n", |
525 | 528 | "- [projects](https://docs.github.com/en/free-pro-team@latest/rest/reference/projects)\n", |
526 | 529 | "- [pulls](https://docs.github.com/en/free-pro-team@latest/rest/reference/pulls)\n", |
527 | 530 | "- [rate_limit](https://docs.github.com/en/free-pro-team@latest/rest/reference/rate-limit)\n", |
|
534 | 537 | "- [users](https://docs.github.com/en/free-pro-team@latest/rest/reference/users)" |
535 | 538 | ], |
536 | 539 | "text/plain": [ |
537 | | - "<__main__.GhApi at 0x7fd5184f73a0>" |
| 540 | + "<__main__.GhApi at 0x7fdc20513640>" |
538 | 541 | ] |
539 | 542 | }, |
540 | 543 | "execution_count": null, |
|
554 | 557 | { |
555 | 558 | "data": { |
556 | 559 | "text/markdown": [ |
557 | | - "- [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", |
558 | | - "- [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", |
559 | | - "- [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*" |
| 560 | + "- [codes-of-conduct.get_all_codes_of_conduct](https://docs.github.com/rest/reference/codes_of_conduct/#get-all-codes-of-conduct)(): *Get all codes of conduct*\n", |
| 561 | + "- [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*\n", |
| 562 | + "- [codes-of-conduct.get_for_repo](https://docs.github.com/rest/reference/codes_of_conduct/#get-the-code-of-conduct-for-a-repository)(): *Get the code of conduct for a repository*" |
560 | 563 | ], |
561 | 564 | "text/plain": [ |
562 | | - "<__main__._GhVerbGroup at 0x7fd5184f73d0>" |
| 565 | + "<__main__._GhVerbGroup at 0x7fdc205139a0>" |
563 | 566 | ] |
564 | 567 | }, |
565 | 568 | "execution_count": null, |
|
709 | 712 | "- [git.get_tree](https://docs.github.com/rest/reference/git#get-a-tree)(tree_sha, recursive): *Get a tree*" |
710 | 713 | ], |
711 | 714 | "text/plain": [ |
712 | | - "<__main__._GhVerbGroup at 0x7fd5184e58b0>" |
| 715 | + "<__main__._GhVerbGroup at 0x7fdc00dac4f0>" |
713 | 716 | ] |
714 | 717 | }, |
715 | 718 | "execution_count": null, |
|
845 | 848 | { |
846 | 849 | "data": { |
847 | 850 | "text/plain": [ |
848 | | - "2" |
| 851 | + "6" |
849 | 852 | ] |
850 | 853 | }, |
851 | 854 | "execution_count": null, |
|
880 | 883 | "name": "stdout", |
881 | 884 | "output_type": "stream", |
882 | 885 | "text": [ |
883 | | - "2020-12-28T12:52:59Z -> 2020-12-28 12:52:59\n" |
| 886 | + "2021-04-28T16:52:35Z -> 2021-04-28 16:52:35\n" |
884 | 887 | ] |
885 | 888 | } |
886 | 889 | ], |
|
1480 | 1483 | "Converted 50_fullapi.ipynb.\n", |
1481 | 1484 | "Converted 80_tutorial_actions.ipynb.\n", |
1482 | 1485 | "Converted 90_build_lib.ipynb.\n", |
1483 | | - "Converted Untitled.ipynb.\n", |
1484 | 1486 | "Converted ghapi demo.ipynb.\n", |
1485 | 1487 | "Converted index.ipynb.\n" |
1486 | 1488 | ] |
|
0 commit comments