Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refresh metadata #56

Merged
merged 2 commits into from
Apr 28, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
42 changes: 22 additions & 20 deletions 00_core.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,8 @@
"class _GhVerb(_GhObj):\n",
" __slots__ = 'path,verb,tag,name,summary,url,route_ps,params,data,preview,client,__doc__'.split(',')\n",
" def __init__(self, path, verb, oper, summary, url, params, data, preview, client, kwargs):\n",
" tag,name = oper.split('/')\n",
" tag,*name = oper.split('/')\n",
" name = '__'.join(name)\n",
" name = name.replace('-','_')\n",
" path,_,_ = partial_format(path, **kwargs)\n",
" route_ps = stringfmt_names(path)\n",
Expand Down Expand Up @@ -290,18 +291,18 @@
"- node_id: MDM6UmVmMzE1NzEyNTg4OnJlZnMvaGVhZHMvbWFzdGVy\n",
"- url: https://api.github.com/repos/fastai/ghapi-test/git/refs/heads/master\n",
"- object: \n",
" - sha: 4fabc2fb4686c8b742511247372c5bc9f5a788df\n",
" - sha: 77d2b8f95ca0ee35a4b24165008d698653459d5d\n",
" - type: commit\n",
" - url: https://api.github.com/repos/fastai/ghapi-test/git/commits/4fabc2fb4686c8b742511247372c5bc9f5a788df"
" - url: https://api.github.com/repos/fastai/ghapi-test/git/commits/77d2b8f95ca0ee35a4b24165008d698653459d5d"
],
"text/plain": [
"- ref: refs/heads/master\n",
"- node_id: MDM6UmVmMzE1NzEyNTg4OnJlZnMvaGVhZHMvbWFzdGVy\n",
"- url: https://api.github.com/repos/fastai/ghapi-test/git/refs/heads/master\n",
"- object: \n",
" - sha: 4fabc2fb4686c8b742511247372c5bc9f5a788df\n",
" - sha: 77d2b8f95ca0ee35a4b24165008d698653459d5d\n",
" - type: commit\n",
" - url: https://api.github.com/repos/fastai/ghapi-test/git/commits/4fabc2fb4686c8b742511247372c5bc9f5a788df"
" - url: https://api.github.com/repos/fastai/ghapi-test/git/commits/77d2b8f95ca0ee35a4b24165008d698653459d5d"
]
},
"execution_count": null,
Expand Down Expand Up @@ -359,18 +360,18 @@
"- node_id: MDM6UmVmMzE1NzEyNTg4OnJlZnMvaGVhZHMvbWFzdGVy\n",
"- url: https://api.github.com/repos/fastai/ghapi-test/git/refs/heads/master\n",
"- object: \n",
" - sha: 4fabc2fb4686c8b742511247372c5bc9f5a788df\n",
" - sha: 77d2b8f95ca0ee35a4b24165008d698653459d5d\n",
" - type: commit\n",
" - url: https://api.github.com/repos/fastai/ghapi-test/git/commits/4fabc2fb4686c8b742511247372c5bc9f5a788df"
" - url: https://api.github.com/repos/fastai/ghapi-test/git/commits/77d2b8f95ca0ee35a4b24165008d698653459d5d"
],
"text/plain": [
"- ref: refs/heads/master\n",
"- node_id: MDM6UmVmMzE1NzEyNTg4OnJlZnMvaGVhZHMvbWFzdGVy\n",
"- url: https://api.github.com/repos/fastai/ghapi-test/git/refs/heads/master\n",
"- object: \n",
" - sha: 4fabc2fb4686c8b742511247372c5bc9f5a788df\n",
" - sha: 77d2b8f95ca0ee35a4b24165008d698653459d5d\n",
" - type: commit\n",
" - url: https://api.github.com/repos/fastai/ghapi-test/git/commits/4fabc2fb4686c8b742511247372c5bc9f5a788df"
" - url: https://api.github.com/repos/fastai/ghapi-test/git/commits/77d2b8f95ca0ee35a4b24165008d698653459d5d"
]
},
"execution_count": null,
Expand Down Expand Up @@ -405,7 +406,7 @@
"name": "stdout",
"output_type": "stream",
"text": [
"Quota remaining: 4872 of 5000\n"
"Quota remaining: 57 of 60\n"
]
},
{
Expand Down Expand Up @@ -441,7 +442,7 @@
{
"data": {
"text/plain": [
"'4872'"
"'57'"
]
},
"execution_count": null,
Expand Down Expand Up @@ -505,6 +506,7 @@
"- [actions](https://docs.github.com/en/free-pro-team@latest/rest/reference/actions)\n",
"- [activity](https://docs.github.com/en/free-pro-team@latest/rest/reference/activity)\n",
"- [apps](https://docs.github.com/en/free-pro-team@latest/rest/reference/apps)\n",
"- [audit_log](https://docs.github.com/en/free-pro-team@latest/rest/reference/audit-log)\n",
"- [billing](https://docs.github.com/en/free-pro-team@latest/rest/reference/billing)\n",
"- [checks](https://docs.github.com/en/free-pro-team@latest/rest/reference/checks)\n",
"- [code_scanning](https://docs.github.com/en/free-pro-team@latest/rest/reference/code-scanning)\n",
Expand All @@ -522,6 +524,7 @@
"- [migrations](https://docs.github.com/en/free-pro-team@latest/rest/reference/migrations)\n",
"- [oauth_authorizations](https://docs.github.com/en/free-pro-team@latest/rest/reference/oauth-authorizations)\n",
"- [orgs](https://docs.github.com/en/free-pro-team@latest/rest/reference/orgs)\n",
"- [packages](https://docs.github.com/en/free-pro-team@latest/rest/reference/packages)\n",
"- [projects](https://docs.github.com/en/free-pro-team@latest/rest/reference/projects)\n",
"- [pulls](https://docs.github.com/en/free-pro-team@latest/rest/reference/pulls)\n",
"- [rate_limit](https://docs.github.com/en/free-pro-team@latest/rest/reference/rate-limit)\n",
Expand All @@ -534,7 +537,7 @@
"- [users](https://docs.github.com/en/free-pro-team@latest/rest/reference/users)"
],
"text/plain": [
"<__main__.GhApi at 0x7fd5184f73a0>"
"<__main__.GhApi at 0x7fdc20513640>"
]
},
"execution_count": null,
Expand All @@ -554,12 +557,12 @@
{
"data": {
"text/markdown": [
"- [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",
"- [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",
"- [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*"
"- [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",
"- [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",
"- [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*"
],
"text/plain": [
"<__main__._GhVerbGroup at 0x7fd5184f73d0>"
"<__main__._GhVerbGroup at 0x7fdc205139a0>"
]
},
"execution_count": null,
Expand Down Expand Up @@ -709,7 +712,7 @@
"- [git.get_tree](https://docs.github.com/rest/reference/git#get-a-tree)(tree_sha, recursive): *Get a tree*"
],
"text/plain": [
"<__main__._GhVerbGroup at 0x7fd5184e58b0>"
"<__main__._GhVerbGroup at 0x7fdc00dac4f0>"
]
},
"execution_count": null,
Expand Down Expand Up @@ -845,7 +848,7 @@
{
"data": {
"text/plain": [
"2"
"6"
]
},
"execution_count": null,
Expand Down Expand Up @@ -880,7 +883,7 @@
"name": "stdout",
"output_type": "stream",
"text": [
"2020-12-28T12:52:59Z -> 2020-12-28 12:52:59\n"
"2021-04-28T16:52:35Z -> 2021-04-28 16:52:35\n"
]
}
],
Expand Down Expand Up @@ -1480,7 +1483,6 @@
"Converted 50_fullapi.ipynb.\n",
"Converted 80_tutorial_actions.ipynb.\n",
"Converted 90_build_lib.ipynb.\n",
"Converted Untitled.ipynb.\n",
"Converted ghapi demo.ipynb.\n",
"Converted index.ipynb.\n"
]
Expand Down
Loading