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

fresh build #187

Merged
merged 2 commits into from
Feb 5, 2025
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
69 changes: 48 additions & 21 deletions 00_core.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,7 @@
"text/markdown": [
"---\n",
"\n",
"[source](https://github.com/fastai/ghapi/blob/master/ghapi/core.py#L121){target=\"_blank\" style=\"float:right; font-size:smaller\"}\n",
"[source](https://github.com/fastai/ghapi/blob/master/ghapi/core.py#L123){target=\"_blank\" style=\"float:right; font-size:smaller\"}\n",
"\n",
"### GhApi.__call__\n",
"\n",
Expand All @@ -285,7 +285,7 @@
"text/plain": [
"---\n",
"\n",
"[source](https://github.com/fastai/ghapi/blob/master/ghapi/core.py#L121){target=\"_blank\" style=\"float:right; font-size:smaller\"}\n",
"[source](https://github.com/fastai/ghapi/blob/master/ghapi/core.py#L123){target=\"_blank\" style=\"float:right; font-size:smaller\"}\n",
"\n",
"### GhApi.__call__\n",
"\n",
Expand Down Expand Up @@ -331,9 +331,9 @@
"text/markdown": [
"```json\n",
"{ 'node_id': 'MDM6UmVmMzE1NzEyNTg4OnJlZnMvaGVhZHMvbWFzdGVy',\n",
" 'object': { 'sha': '17efbb7eb346f0f9161c227af9c8db93597321e2',\n",
" 'object': { 'sha': '276fb019036d9fbc868313f243cc4bf88f8255a3',\n",
" 'type': 'commit',\n",
" 'url': 'https://api.github.com/repos/fastai/ghapi-test/git/commits/17efbb7eb346f0f9161c227af9c8db93597321e2'},\n",
" 'url': 'https://api.github.com/repos/fastai/ghapi-test/git/commits/276fb019036d9fbc868313f243cc4bf88f8255a3'},\n",
" 'ref': 'refs/heads/master',\n",
" 'url': 'https://api.github.com/repos/fastai/ghapi-test/git/refs/heads/master'}\n",
"```"
Expand All @@ -342,9 +342,9 @@
"{'ref': 'refs/heads/master',\n",
" 'node_id': 'MDM6UmVmMzE1NzEyNTg4OnJlZnMvaGVhZHMvbWFzdGVy',\n",
" 'url': 'https://api.github.com/repos/fastai/ghapi-test/git/refs/heads/master',\n",
" 'object': {'sha': '17efbb7eb346f0f9161c227af9c8db93597321e2',\n",
" 'object': {'sha': '276fb019036d9fbc868313f243cc4bf88f8255a3',\n",
" 'type': 'commit',\n",
" 'url': 'https://api.github.com/repos/fastai/ghapi-test/git/commits/17efbb7eb346f0f9161c227af9c8db93597321e2'}}"
" 'url': 'https://api.github.com/repos/fastai/ghapi-test/git/commits/276fb019036d9fbc868313f243cc4bf88f8255a3'}}"
]
},
"execution_count": null,
Expand All @@ -367,7 +367,7 @@
"text/markdown": [
"---\n",
"\n",
"[source](https://github.com/fastai/ghapi/blob/master/ghapi/core.py#L145){target=\"_blank\" style=\"float:right; font-size:smaller\"}\n",
"[source](https://github.com/fastai/ghapi/blob/master/ghapi/core.py#L147){target=\"_blank\" style=\"float:right; font-size:smaller\"}\n",
"\n",
"### GhApi.__getitem__\n",
"\n",
Expand All @@ -378,7 +378,7 @@
"text/plain": [
"---\n",
"\n",
"[source](https://github.com/fastai/ghapi/blob/master/ghapi/core.py#L145){target=\"_blank\" style=\"float:right; font-size:smaller\"}\n",
"[source](https://github.com/fastai/ghapi/blob/master/ghapi/core.py#L147){target=\"_blank\" style=\"float:right; font-size:smaller\"}\n",
"\n",
"### GhApi.__getitem__\n",
"\n",
Expand Down Expand Up @@ -413,9 +413,9 @@
"text/markdown": [
"```json\n",
"{ 'node_id': 'MDM6UmVmMzE1NzEyNTg4OnJlZnMvaGVhZHMvbWFzdGVy',\n",
" 'object': { 'sha': '17efbb7eb346f0f9161c227af9c8db93597321e2',\n",
" 'object': { 'sha': '276fb019036d9fbc868313f243cc4bf88f8255a3',\n",
" 'type': 'commit',\n",
" 'url': 'https://api.github.com/repos/fastai/ghapi-test/git/commits/17efbb7eb346f0f9161c227af9c8db93597321e2'},\n",
" 'url': 'https://api.github.com/repos/fastai/ghapi-test/git/commits/276fb019036d9fbc868313f243cc4bf88f8255a3'},\n",
" 'ref': 'refs/heads/master',\n",
" 'url': 'https://api.github.com/repos/fastai/ghapi-test/git/refs/heads/master'}\n",
"```"
Expand All @@ -424,9 +424,9 @@
"{'ref': 'refs/heads/master',\n",
" 'node_id': 'MDM6UmVmMzE1NzEyNTg4OnJlZnMvaGVhZHMvbWFzdGVy',\n",
" 'url': 'https://api.github.com/repos/fastai/ghapi-test/git/refs/heads/master',\n",
" 'object': {'sha': '17efbb7eb346f0f9161c227af9c8db93597321e2',\n",
" 'object': {'sha': '276fb019036d9fbc868313f243cc4bf88f8255a3',\n",
" 'type': 'commit',\n",
" 'url': 'https://api.github.com/repos/fastai/ghapi-test/git/commits/17efbb7eb346f0f9161c227af9c8db93597321e2'}}"
" 'url': 'https://api.github.com/repos/fastai/ghapi-test/git/commits/276fb019036d9fbc868313f243cc4bf88f8255a3'}}"
]
},
"execution_count": null,
Expand Down Expand Up @@ -460,7 +460,7 @@
{
"data": {
"text/plain": [
"'17efbb7eb346f0f9161c227af9c8db93597321e2'"
"'276fb019036d9fbc868313f243cc4bf88f8255a3'"
]
},
"execution_count": null,
Expand Down Expand Up @@ -497,7 +497,7 @@
"name": "stdout",
"output_type": "stream",
"text": [
"Quota remaining: 4897 of 5000\n"
"Quota remaining: 4996 of 5000\n"
]
},
{
Expand Down Expand Up @@ -533,7 +533,7 @@
{
"data": {
"text/plain": [
"'4897'"
"'4996'"
]
},
"execution_count": null,
Expand Down Expand Up @@ -596,6 +596,7 @@
"text/markdown": [
"- [actions](https://docs.github.com/rest/reference/actions)\n",
"- [activity](https://docs.github.com/rest/reference/activity)\n",
"- [api_insights](https://docs.github.com/rest/reference/api-insights)\n",
"- [apps](https://docs.github.com/rest/reference/apps)\n",
"- [billing](https://docs.github.com/rest/reference/billing)\n",
"- [checks](https://docs.github.com/rest/reference/checks)\n",
Expand All @@ -611,6 +612,7 @@
"- [gists](https://docs.github.com/rest/reference/gists)\n",
"- [git](https://docs.github.com/rest/reference/git)\n",
"- [gitignore](https://docs.github.com/rest/reference/gitignore)\n",
"- [hosted_compute](https://docs.github.com/rest/reference/hosted-compute)\n",
"- [interactions](https://docs.github.com/rest/reference/interactions)\n",
"- [issues](https://docs.github.com/rest/reference/issues)\n",
"- [licenses](https://docs.github.com/rest/reference/licenses)\n",
Expand All @@ -620,6 +622,7 @@
"- [oidc](https://docs.github.com/rest/reference/oidc)\n",
"- [orgs](https://docs.github.com/rest/reference/orgs)\n",
"- [packages](https://docs.github.com/rest/reference/packages)\n",
"- [private_registries](https://docs.github.com/rest/reference/private-registries)\n",
"- [projects](https://docs.github.com/rest/reference/projects)\n",
"- [pulls](https://docs.github.com/rest/reference/pulls)\n",
"- [rate_limit](https://docs.github.com/rest/reference/rate-limit)\n",
Expand Down Expand Up @@ -946,10 +949,18 @@
"execution_count": null,
"metadata": {},
"outputs": [
{
"name": "stderr",
"output_type": "stream",
"text": [
"/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",
" dt = date2gh(datetime.utcnow() - timedelta(weeks=4))\n"
]
},
{
"data": {
"text/plain": [
"3"
"1"
]
},
"execution_count": null,
Expand Down Expand Up @@ -984,7 +995,7 @@
"name": "stdout",
"output_type": "stream",
"text": [
"2024-08-27T06:49:29Z -> 2024-08-27 06:49:29\n"
"2023-06-29T17:44:49Z -> 2023-06-29 17:44:49\n"
]
}
],
Expand Down Expand Up @@ -1071,7 +1082,7 @@
{
"data": {
"text/plain": [
"('https://gist.github.com/jph00/d11f49a2c4515491f09d520e402ede75',\n",
"('https://gist.github.com/hamelsmu/2543b0c1699eafd0a36319a4a6284afa',\n",
" 'some content')"
]
},
Expand Down Expand Up @@ -1241,7 +1252,7 @@
"text/markdown": [
"---\n",
"\n",
"[source](https://github.com/fastai/ghapi/blob/master/ghapi/core.py#L171){target=\"_blank\" style=\"float:right; font-size:smaller\"}\n",
"[source](https://github.com/fastai/ghapi/blob/master/ghapi/core.py#L173){target=\"_blank\" style=\"float:right; font-size:smaller\"}\n",
"\n",
"### GhApi.delete_release\n",
"\n",
Expand All @@ -1252,7 +1263,7 @@
"text/plain": [
"---\n",
"\n",
"[source](https://github.com/fastai/ghapi/blob/master/ghapi/core.py#L171){target=\"_blank\" style=\"float:right; font-size:smaller\"}\n",
"[source](https://github.com/fastai/ghapi/blob/master/ghapi/core.py#L173){target=\"_blank\" style=\"float:right; font-size:smaller\"}\n",
"\n",
"### GhApi.delete_release\n",
"\n",
Expand Down Expand Up @@ -1707,7 +1718,23 @@
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"outputs": [
{
"data": {
"text/markdown": [
"```json\n",
"{}\n",
"```"
],
"text/plain": [
"{}"
]
},
"execution_count": null,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"res = api.enable_pages(branch='new-branch', path='/')\n",
"\n",
Expand Down
23 changes: 2 additions & 21 deletions 90_build_lib.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@
{
"data": {
"text/plain": [
"GhMeta(path='/app/hook/config', verb='get', oper_id='apps/get-webhook-config-for-app', summary='Get a webhook configuration for an app', doc_url='rest/reference/apps#get-a-webhook-configuration-for-an-app', params=[], data=[], preview='')"
"GhMeta(path='/app', verb='get', oper_id='apps/get-authenticated', summary='Get the authenticated app', doc_url='rest/apps/apps#get-the-authenticated-app', params=[], data=[], preview='')"
]
},
"execution_count": null,
Expand All @@ -184,26 +184,7 @@
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"Converted 00_core.ipynb.\n",
"Converted 01_actions.ipynb.\n",
"Converted 02_auth.ipynb.\n",
"Converted 03_page.ipynb.\n",
"Converted 04_event.ipynb.\n",
"Converted 10_cli.ipynb.\n",
"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"
]
}
],
"outputs": [],
"source": [
"#|hide\n",
"from nbdev import nbdev_export\n",
Expand Down
Loading