diff --git a/githubkit/webhooks/models.py b/githubkit/webhooks/models.py index f86e8d81d..dee8e5aeb 100644 --- a/githubkit/webhooks/models.py +++ b/githubkit/webhooks/models.py @@ -9861,9 +9861,9 @@ class ProjectsV2ItemEditedPropChanges(GitHubWebhookModel): class ProjectsV2ItemEditedPropChangesPropFieldValue(GitHubWebhookModel): """ProjectsV2ItemEditedPropChangesPropFieldValue""" - field_type: Literal["single_select", "date", "number", "text", "iteration"] = Field( - default=... - ) + field_type: Literal[ + "single_select", "date", "number", "text", "iteration", "labels" + ] = Field(default=...) field_node_id: str = Field(default=...) diff --git a/pyproject.toml b/pyproject.toml index 6b939cd8f..b16ebdaf1 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -264,6 +264,9 @@ types_output = "githubkit/webhooks/types.py" # [FIXED] https://github.com/octokit/webhooks/issues/806 # "/definitions/secret_scanning_alert$resolved/properties/alert/allOf/1/properties/resolution" = { enum = ["false_positive", "wont_fix", "revoked", "used_in_tests"] } +# https://github.com/yanyongyu/githubkit/pull/69 +"/definitions/projects_v2_item$edited/properties/changes/properties/field_value/properties/field_type" = { enum = [ "single_select", "date", "number", "text", "iteration", "labels" ] } + [tool.codegen.field_overrides] "+1" = "plus_one" "-1" = "minus_one"