Skip to content

Commit

Permalink
👽 re-generate models and apis
Browse files Browse the repository at this point in the history
  • Loading branch information
yanyongyu authored Mar 20, 2024
1 parent 631681e commit 784eab9
Show file tree
Hide file tree
Showing 5 changed files with 37 additions and 17 deletions.
19 changes: 13 additions & 6 deletions githubkit/versions/ghec_v2022_11_28/models/group_0754.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
See https://github.com/github/rest-api-description for more information.
"""


from __future__ import annotations

from typing import Union
Expand All @@ -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",
Expand All @@ -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)
Expand Down
7 changes: 5 additions & 2 deletions githubkit/versions/ghec_v2022_11_28/types/group_0754.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
See https://github.com/github/rest-api-description for more information.
"""


from __future__ import annotations

from typing import Union
Expand All @@ -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__ = (
Expand Down
19 changes: 13 additions & 6 deletions githubkit/versions/v2022_11_28/models/group_0721.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
See https://github.com/github/rest-api-description for more information.
"""


from __future__ import annotations

from typing import Union
Expand All @@ -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",
Expand All @@ -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)
Expand Down
7 changes: 5 additions & 2 deletions githubkit/versions/v2022_11_28/types/group_0721.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
See https://github.com/github/rest-api-description for more information.
"""


from __future__ import annotations

from typing import Union
Expand All @@ -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__ = (
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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 = "<unset>" }
# "/components/schemas/webhook-repository-dispatch-sample/properties/action" = { enum = "<unset>" }

[build-system]
requires = ["poetry_core>=1.0.0"]
Expand Down

0 comments on commit 784eab9

Please sign in to comment.