Skip to content
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
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ class WebhookWorkflowJobCompletedPropWorkflowJobMergedSteps(GitHubModel):
name: str = Field()
number: int = Field()
started_at: Union[str, None] = Field()
status: Literal["in_progress", "completed", "queued"] = Field()
status: Literal["in_progress", "completed", "queued", "pending"] = Field()


model_rebuild(WebhookWorkflowJobCompleted)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ class WebhookWorkflowJobCompletedPropWorkflowJobAllof0PropStepsItems(GitHubModel
name: str = Field()
number: int = Field()
started_at: Union[str, None] = Field()
status: Literal["in_progress", "completed", "queued"] = Field()
status: Literal["in_progress", "completed", "queued", "pending"] = Field()


model_rebuild(WebhookWorkflowJobCompletedPropWorkflowJobAllof0)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ class WebhookWorkflowJobCompletedPropWorkflowJobMergedStepsType(TypedDict):
name: str
number: int
started_at: Union[str, None]
status: Literal["in_progress", "completed", "queued"]
status: Literal["in_progress", "completed", "queued", "pending"]


class WebhookWorkflowJobCompletedPropWorkflowJobMergedStepsTypeForResponse(TypedDict):
Expand All @@ -140,7 +140,7 @@ class WebhookWorkflowJobCompletedPropWorkflowJobMergedStepsTypeForResponse(Typed
name: str
number: int
started_at: Union[str, None]
status: Literal["in_progress", "completed", "queued"]
status: Literal["in_progress", "completed", "queued", "pending"]


__all__ = (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ class WebhookWorkflowJobCompletedPropWorkflowJobAllof0PropStepsItemsType(TypedDi
name: str
number: int
started_at: Union[str, None]
status: Literal["in_progress", "completed", "queued"]
status: Literal["in_progress", "completed", "queued", "pending"]


class WebhookWorkflowJobCompletedPropWorkflowJobAllof0PropStepsItemsTypeForResponse(
Expand All @@ -122,7 +122,7 @@ class WebhookWorkflowJobCompletedPropWorkflowJobAllof0PropStepsItemsTypeForRespo
name: str
number: int
started_at: Union[str, None]
status: Literal["in_progress", "completed", "queued"]
status: Literal["in_progress", "completed", "queued", "pending"]


__all__ = (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ class WebhookWorkflowJobCompletedPropWorkflowJobMergedSteps(GitHubModel):
name: str = Field()
number: int = Field()
started_at: Union[str, None] = Field()
status: Literal["in_progress", "completed", "queued"] = Field()
status: Literal["in_progress", "completed", "queued", "pending"] = Field()


model_rebuild(WebhookWorkflowJobCompleted)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ class WebhookWorkflowJobCompletedPropWorkflowJobAllof0PropStepsItems(GitHubModel
name: str = Field()
number: int = Field()
started_at: Union[str, None] = Field()
status: Literal["in_progress", "completed", "queued"] = Field()
status: Literal["in_progress", "completed", "queued", "pending"] = Field()


model_rebuild(WebhookWorkflowJobCompletedPropWorkflowJobAllof0)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ class WebhookWorkflowJobCompletedPropWorkflowJobMergedStepsType(TypedDict):
name: str
number: int
started_at: Union[str, None]
status: Literal["in_progress", "completed", "queued"]
status: Literal["in_progress", "completed", "queued", "pending"]


class WebhookWorkflowJobCompletedPropWorkflowJobMergedStepsTypeForResponse(TypedDict):
Expand All @@ -140,7 +140,7 @@ class WebhookWorkflowJobCompletedPropWorkflowJobMergedStepsTypeForResponse(Typed
name: str
number: int
started_at: Union[str, None]
status: Literal["in_progress", "completed", "queued"]
status: Literal["in_progress", "completed", "queued", "pending"]


__all__ = (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ class WebhookWorkflowJobCompletedPropWorkflowJobAllof0PropStepsItemsType(TypedDi
name: str
number: int
started_at: Union[str, None]
status: Literal["in_progress", "completed", "queued"]
status: Literal["in_progress", "completed", "queued", "pending"]


class WebhookWorkflowJobCompletedPropWorkflowJobAllof0PropStepsItemsTypeForResponse(
Expand All @@ -122,7 +122,7 @@ class WebhookWorkflowJobCompletedPropWorkflowJobAllof0PropStepsItemsTypeForRespo
name: str
number: int
started_at: Union[str, None]
status: Literal["in_progress", "completed", "queued"]
status: Literal["in_progress", "completed", "queued", "pending"]


__all__ = (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ class WebhookWorkflowJobCompletedPropWorkflowJobMergedSteps(GitHubModel):
name: str = Field()
number: int = Field()
started_at: Union[str, None] = Field()
status: Literal["in_progress", "completed", "queued"] = Field()
status: Literal["in_progress", "completed", "queued", "pending"] = Field()


model_rebuild(WebhookWorkflowJobCompleted)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ class WebhookWorkflowJobCompletedPropWorkflowJobAllof0PropStepsItems(GitHubModel
name: str = Field()
number: int = Field()
started_at: Union[str, None] = Field()
status: Literal["in_progress", "completed", "queued"] = Field()
status: Literal["in_progress", "completed", "queued", "pending"] = Field()


model_rebuild(WebhookWorkflowJobCompletedPropWorkflowJobAllof0)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ class WebhookWorkflowJobCompletedPropWorkflowJobMergedStepsType(TypedDict):
name: str
number: int
started_at: Union[str, None]
status: Literal["in_progress", "completed", "queued"]
status: Literal["in_progress", "completed", "queued", "pending"]


class WebhookWorkflowJobCompletedPropWorkflowJobMergedStepsTypeForResponse(TypedDict):
Expand All @@ -140,7 +140,7 @@ class WebhookWorkflowJobCompletedPropWorkflowJobMergedStepsTypeForResponse(Typed
name: str
number: int
started_at: Union[str, None]
status: Literal["in_progress", "completed", "queued"]
status: Literal["in_progress", "completed", "queued", "pending"]


__all__ = (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ class WebhookWorkflowJobCompletedPropWorkflowJobAllof0PropStepsItemsType(TypedDi
name: str
number: int
started_at: Union[str, None]
status: Literal["in_progress", "completed", "queued"]
status: Literal["in_progress", "completed", "queued", "pending"]


class WebhookWorkflowJobCompletedPropWorkflowJobAllof0PropStepsItemsTypeForResponse(
Expand All @@ -122,7 +122,7 @@ class WebhookWorkflowJobCompletedPropWorkflowJobAllof0PropStepsItemsTypeForRespo
name: str
number: int
started_at: Union[str, None]
status: Literal["in_progress", "completed", "queued"]
status: Literal["in_progress", "completed", "queued", "pending"]


__all__ = (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ class WebhookWorkflowJobCompletedPropWorkflowJobMergedSteps(GitHubModel):
name: str = Field()
number: int = Field()
started_at: Union[str, None] = Field()
status: Literal["in_progress", "completed", "queued"] = Field()
status: Literal["in_progress", "completed", "queued", "pending"] = Field()


model_rebuild(WebhookWorkflowJobCompleted)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ class WebhookWorkflowJobCompletedPropWorkflowJobAllof0PropStepsItems(GitHubModel
name: str = Field()
number: int = Field()
started_at: Union[str, None] = Field()
status: Literal["in_progress", "completed", "queued"] = Field()
status: Literal["in_progress", "completed", "queued", "pending"] = Field()


model_rebuild(WebhookWorkflowJobCompletedPropWorkflowJobAllof0)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ class WebhookWorkflowJobCompletedPropWorkflowJobMergedStepsType(TypedDict):
name: str
number: int
started_at: Union[str, None]
status: Literal["in_progress", "completed", "queued"]
status: Literal["in_progress", "completed", "queued", "pending"]


class WebhookWorkflowJobCompletedPropWorkflowJobMergedStepsTypeForResponse(TypedDict):
Expand All @@ -140,7 +140,7 @@ class WebhookWorkflowJobCompletedPropWorkflowJobMergedStepsTypeForResponse(Typed
name: str
number: int
started_at: Union[str, None]
status: Literal["in_progress", "completed", "queued"]
status: Literal["in_progress", "completed", "queued", "pending"]


__all__ = (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ class WebhookWorkflowJobCompletedPropWorkflowJobAllof0PropStepsItemsType(TypedDi
name: str
number: int
started_at: Union[str, None]
status: Literal["in_progress", "completed", "queued"]
status: Literal["in_progress", "completed", "queued", "pending"]


class WebhookWorkflowJobCompletedPropWorkflowJobAllof0PropStepsItemsTypeForResponse(
Expand All @@ -122,7 +122,7 @@ class WebhookWorkflowJobCompletedPropWorkflowJobAllof0PropStepsItemsTypeForRespo
name: str
number: int
started_at: Union[str, None]
status: Literal["in_progress", "completed", "queued"]
status: Literal["in_progress", "completed", "queued", "pending"]


__all__ = (
Expand Down
1 change: 1 addition & 0 deletions packages/githubkit-schemas/githubkit_schemas/versions.lock
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,7 @@ target_descriptions = ["ghec-2022-11-28", "ghec-2026-03-10"]
"/components/schemas/webhook-workflow-job-in-progress/properties/workflow_job/allOf/0/properties/run_id" = {type = "integer"}
"/components/schemas/webhook-workflow-job-queued/properties/workflow_job/properties/run_id" = {type = "integer"}
"/components/schemas/webhook-workflow-job-waiting/properties/workflow_job/properties/run_id" = {type = "integer"}
"/components/schemas/webhook-workflow-job-completed/properties/workflow_job/allOf/0/properties/steps/items/properties/status/enum" = {"<add>" = ["pending"]}
"/components/schemas/webhook-workflow-job-completed/properties/workflow_job/allOf/1/properties/runner_id" = {type = ["integer", "null"]}
"/components/schemas/webhook-workflow-job-in-progress/properties/workflow_job/allOf/1/properties/runner_id" = {type = ["integer", "null"]}
"/components/schemas/webhook-workflow-job-completed/properties/workflow_job/allOf/1/properties/runner_group_id" = {type = ["integer", "null"]}
Expand Down
5 changes: 5 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -632,6 +632,11 @@ target_descriptions = ["ghec-2022-11-28", "ghec-2026-03-10"]
"/components/schemas/webhook-workflow-job-in-progress/properties/workflow_job/allOf/0/properties/run_id" = { type = "integer" }
"/components/schemas/webhook-workflow-job-queued/properties/workflow_job/properties/run_id" = { type = "integer" }
"/components/schemas/webhook-workflow-job-waiting/properties/workflow_job/properties/run_id" = { type = "integer" }
# webhook workflow job completed steps can still report "pending" status
# https://github.com/yanyongyu/githubkit/issues/334
"/components/schemas/webhook-workflow-job-completed/properties/workflow_job/allOf/0/properties/steps/items/properties/status/enum" = { "<add>" = [
"pending",
] }
# webhook workflow job runner_id should be integer
"/components/schemas/webhook-workflow-job-completed/properties/workflow_job/allOf/1/properties/runner_id" = { type = [
"integer",
Expand Down
Loading
Loading