From 784eab9505d1a788a273c349d0ec73df72827541 Mon Sep 17 00:00:00 2001 From: Ju4tCode <42488585+yanyongyu@users.noreply.github.com> Date: Wed, 20 Mar 2024 16:23:12 +0000 Subject: [PATCH] :alien: re-generate models and apis --- .../ghec_v2022_11_28/models/group_0754.py | 19 +++++++++++++------ .../ghec_v2022_11_28/types/group_0754.py | 7 +++++-- .../versions/v2022_11_28/models/group_0721.py | 19 +++++++++++++------ .../versions/v2022_11_28/types/group_0721.py | 7 +++++-- pyproject.toml | 2 +- 5 files changed, 37 insertions(+), 17 deletions(-) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0754.py b/githubkit/versions/ghec_v2022_11_28/models/group_0754.py index 7be3282ce..9a62f740e 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0754.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0754.py @@ -7,7 +7,6 @@ See https://github.com/github/rest-api-description for more information. """ - from __future__ import annotations from typing import Union @@ -28,11 +27,15 @@ class WebhookRepositoryDispatchSample(GitHubModel): """repository_dispatch event""" - action: str = Field() + action: str = Field( + description="The `event_type` that was specified in the `POST /repos/{owner}/{repo}/dispatches` request body." + ) branch: str = Field() - client_payload: Union[ - WebhookRepositoryDispatchSamplePropClientPayload, None - ] = Field() + client_payload: Union[WebhookRepositoryDispatchSamplePropClientPayload, None] = ( + Field( + description="The `client_payload` that was specified in the `POST /repos/{owner}/{repo}/dispatches` request body." + ) + ) enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -58,7 +61,11 @@ class WebhookRepositoryDispatchSample(GitHubModel): class WebhookRepositoryDispatchSamplePropClientPayload(ExtraGitHubModel): - """WebhookRepositoryDispatchSamplePropClientPayload""" + """WebhookRepositoryDispatchSamplePropClientPayload + + The `client_payload` that was specified in the `POST + /repos/{owner}/{repo}/dispatches` request body. + """ model_rebuild(WebhookRepositoryDispatchSample) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0754.py b/githubkit/versions/ghec_v2022_11_28/types/group_0754.py index 794e7e9d7..daf4fefb6 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0754.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0754.py @@ -7,7 +7,6 @@ See https://github.com/github/rest-api-description for more information. """ - from __future__ import annotations from typing import Union @@ -34,7 +33,11 @@ class WebhookRepositoryDispatchSampleType(TypedDict): class WebhookRepositoryDispatchSamplePropClientPayloadType(TypedDict): - """WebhookRepositoryDispatchSamplePropClientPayload""" + """WebhookRepositoryDispatchSamplePropClientPayload + + The `client_payload` that was specified in the `POST + /repos/{owner}/{repo}/dispatches` request body. + """ __all__ = ( diff --git a/githubkit/versions/v2022_11_28/models/group_0721.py b/githubkit/versions/v2022_11_28/models/group_0721.py index be7d5d3cb..1bc4f0d2e 100644 --- a/githubkit/versions/v2022_11_28/models/group_0721.py +++ b/githubkit/versions/v2022_11_28/models/group_0721.py @@ -7,7 +7,6 @@ See https://github.com/github/rest-api-description for more information. """ - from __future__ import annotations from typing import Union @@ -28,11 +27,15 @@ class WebhookRepositoryDispatchSample(GitHubModel): """repository_dispatch event""" - action: str = Field() + action: str = Field( + description="The `event_type` that was specified in the `POST /repos/{owner}/{repo}/dispatches` request body." + ) branch: str = Field() - client_payload: Union[ - WebhookRepositoryDispatchSamplePropClientPayload, None - ] = Field() + client_payload: Union[WebhookRepositoryDispatchSamplePropClientPayload, None] = ( + Field( + description="The `client_payload` that was specified in the `POST /repos/{owner}/{repo}/dispatches` request body." + ) + ) enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -58,7 +61,11 @@ class WebhookRepositoryDispatchSample(GitHubModel): class WebhookRepositoryDispatchSamplePropClientPayload(ExtraGitHubModel): - """WebhookRepositoryDispatchSamplePropClientPayload""" + """WebhookRepositoryDispatchSamplePropClientPayload + + The `client_payload` that was specified in the `POST + /repos/{owner}/{repo}/dispatches` request body. + """ model_rebuild(WebhookRepositoryDispatchSample) diff --git a/githubkit/versions/v2022_11_28/types/group_0721.py b/githubkit/versions/v2022_11_28/types/group_0721.py index a59308cf3..7f2908076 100644 --- a/githubkit/versions/v2022_11_28/types/group_0721.py +++ b/githubkit/versions/v2022_11_28/types/group_0721.py @@ -7,7 +7,6 @@ See https://github.com/github/rest-api-description for more information. """ - from __future__ import annotations from typing import Union @@ -34,7 +33,11 @@ class WebhookRepositoryDispatchSampleType(TypedDict): class WebhookRepositoryDispatchSamplePropClientPayloadType(TypedDict): - """WebhookRepositoryDispatchSamplePropClientPayload""" + """WebhookRepositoryDispatchSamplePropClientPayload + + The `client_payload` that was specified in the `POST + /repos/{owner}/{repo}/dispatches` request body. + """ __all__ = ( diff --git a/pyproject.toml b/pyproject.toml index b55262d60..f371a64e8 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -407,7 +407,7 @@ source = "https://raw.githubusercontent.com/github/rest-api-description/main/des # webhook repository dispatch action can be any string "/webhooks/repository-dispatch-sample.collected/post" = { operationId = "repository-dispatch" } -"/components/schemas/webhook-repository-dispatch-sample/properties/action" = { enum = "" } +# "/components/schemas/webhook-repository-dispatch-sample/properties/action" = { enum = "" } [build-system] requires = ["poetry_core>=1.0.0"]