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
2 changes: 1 addition & 1 deletion githubkit/versions/ghec_v2022_11_28/models/group_0631.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ class WebhookCodeScanningAlertAppearedInBranchPropAlert(GitHubModel):
dismissed_reason: Union[
None, Literal["false positive", "won't fix", "used in tests"]
] = Field(description="The reason for dismissing or closing the alert.")
fixed_at: Missing[None] = Field(
fixed_at: Missing[Union[_dt.datetime, None]] = Field(
default=UNSET,
description="The time that the alert was fixed in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`.",
)
Expand Down
2 changes: 1 addition & 1 deletion githubkit/versions/ghec_v2022_11_28/models/group_0633.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ class WebhookCodeScanningAlertClosedByUserPropAlert(GitHubModel):
dismissed_reason: Union[
None, Literal["false positive", "won't fix", "used in tests"]
] = Field(description="The reason for dismissing or closing the alert.")
fixed_at: Missing[None] = Field(
fixed_at: Missing[Union[_dt.datetime, None]] = Field(
default=UNSET,
description="The time that the alert was fixed in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`.",
)
Expand Down
2 changes: 1 addition & 1 deletion githubkit/versions/ghec_v2022_11_28/models/group_0639.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ class WebhookCodeScanningAlertReopenedPropAlert(GitHubModel):
dismissed_reason: Union[str, None] = Field(
description="The reason for dismissing or closing the alert. Can be one of: `false positive`, `won't fix`, and `used in tests`."
)
fixed_at: Missing[None] = Field(
fixed_at: Missing[Union[_dt.datetime, None]] = Field(
default=UNSET,
description="The time that the alert was fixed in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`.",
)
Expand Down
2 changes: 1 addition & 1 deletion githubkit/versions/ghec_v2022_11_28/models/group_0641.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ class WebhookCodeScanningAlertReopenedByUserPropAlert(GitHubModel):
dismissed_reason: None = Field(
description="The reason for dismissing or closing the alert. Can be one of: `false positive`, `won't fix`, and `used in tests`."
)
fixed_at: Missing[None] = Field(
fixed_at: Missing[Union[_dt.datetime, None]] = Field(
default=UNSET,
description="The time that the alert was fixed in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`.",
)
Expand Down
2 changes: 1 addition & 1 deletion githubkit/versions/ghec_v2022_11_28/models/group_0643.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ class WebhookCodeScanningAlertUpdatedAssignmentPropAlert(GitHubModel):
dismissed_reason: Union[
None, Literal["false positive", "won't fix", "used in tests"]
] = Field(description="The reason for dismissing or closing the alert.")
fixed_at: Missing[None] = Field(
fixed_at: Missing[Union[_dt.datetime, None]] = Field(
default=UNSET,
description="The time that the alert was fixed in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`.",
)
Expand Down
4 changes: 2 additions & 2 deletions githubkit/versions/ghec_v2022_11_28/types/group_0631.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ class WebhookCodeScanningAlertAppearedInBranchPropAlertType(TypedDict):
dismissed_reason: Union[
None, Literal["false positive", "won't fix", "used in tests"]
]
fixed_at: NotRequired[None]
fixed_at: NotRequired[Union[_dt.datetime, None]]
html_url: str
most_recent_instance: NotRequired[
Union[
Expand Down Expand Up @@ -64,7 +64,7 @@ class WebhookCodeScanningAlertAppearedInBranchPropAlertTypeForResponse(TypedDict
dismissed_reason: Union[
None, Literal["false positive", "won't fix", "used in tests"]
]
fixed_at: NotRequired[None]
fixed_at: NotRequired[Union[str, None]]
html_url: str
most_recent_instance: NotRequired[
Union[
Expand Down
4 changes: 2 additions & 2 deletions githubkit/versions/ghec_v2022_11_28/types/group_0633.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ class WebhookCodeScanningAlertClosedByUserPropAlertType(TypedDict):
dismissed_reason: Union[
None, Literal["false positive", "won't fix", "used in tests"]
]
fixed_at: NotRequired[None]
fixed_at: NotRequired[Union[_dt.datetime, None]]
html_url: str
most_recent_instance: NotRequired[
Union[
Expand Down Expand Up @@ -70,7 +70,7 @@ class WebhookCodeScanningAlertClosedByUserPropAlertTypeForResponse(TypedDict):
dismissed_reason: Union[
None, Literal["false positive", "won't fix", "used in tests"]
]
fixed_at: NotRequired[None]
fixed_at: NotRequired[Union[str, None]]
html_url: str
most_recent_instance: NotRequired[
Union[
Expand Down
4 changes: 2 additions & 2 deletions githubkit/versions/ghec_v2022_11_28/types/group_0639.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ class WebhookCodeScanningAlertReopenedPropAlertType(TypedDict):
]
dismissed_comment: NotRequired[Union[str, None]]
dismissed_reason: Union[str, None]
fixed_at: NotRequired[None]
fixed_at: NotRequired[Union[_dt.datetime, None]]
html_url: str
instances_url: NotRequired[str]
most_recent_instance: NotRequired[
Expand Down Expand Up @@ -59,7 +59,7 @@ class WebhookCodeScanningAlertReopenedPropAlertTypeForResponse(TypedDict):
]
dismissed_comment: NotRequired[Union[str, None]]
dismissed_reason: Union[str, None]
fixed_at: NotRequired[None]
fixed_at: NotRequired[Union[str, None]]
html_url: str
instances_url: NotRequired[str]
most_recent_instance: NotRequired[
Expand Down
4 changes: 2 additions & 2 deletions githubkit/versions/ghec_v2022_11_28/types/group_0641.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ class WebhookCodeScanningAlertReopenedByUserPropAlertType(TypedDict):
dismissed_by: None
dismissed_comment: NotRequired[Union[str, None]]
dismissed_reason: None
fixed_at: NotRequired[None]
fixed_at: NotRequired[Union[_dt.datetime, None]]
html_url: str
most_recent_instance: NotRequired[
Union[
Expand All @@ -55,7 +55,7 @@ class WebhookCodeScanningAlertReopenedByUserPropAlertTypeForResponse(TypedDict):
dismissed_by: None
dismissed_comment: NotRequired[Union[str, None]]
dismissed_reason: None
fixed_at: NotRequired[None]
fixed_at: NotRequired[Union[str, None]]
html_url: str
most_recent_instance: NotRequired[
Union[
Expand Down
4 changes: 2 additions & 2 deletions githubkit/versions/ghec_v2022_11_28/types/group_0643.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ class WebhookCodeScanningAlertUpdatedAssignmentPropAlertType(TypedDict):
dismissed_reason: Union[
None, Literal["false positive", "won't fix", "used in tests"]
]
fixed_at: NotRequired[None]
fixed_at: NotRequired[Union[_dt.datetime, None]]
html_url: str
most_recent_instance: NotRequired[
Union[
Expand Down Expand Up @@ -64,7 +64,7 @@ class WebhookCodeScanningAlertUpdatedAssignmentPropAlertTypeForResponse(TypedDic
dismissed_reason: Union[
None, Literal["false positive", "won't fix", "used in tests"]
]
fixed_at: NotRequired[None]
fixed_at: NotRequired[Union[str, None]]
html_url: str
most_recent_instance: NotRequired[
Union[
Expand Down
2 changes: 1 addition & 1 deletion githubkit/versions/v2022_11_28/models/group_0540.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ class WebhookCodeScanningAlertAppearedInBranchPropAlert(GitHubModel):
dismissed_reason: Union[
None, Literal["false positive", "won't fix", "used in tests"]
] = Field(description="The reason for dismissing or closing the alert.")
fixed_at: Missing[None] = Field(
fixed_at: Missing[Union[_dt.datetime, None]] = Field(
default=UNSET,
description="The time that the alert was fixed in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`.",
)
Expand Down
2 changes: 1 addition & 1 deletion githubkit/versions/v2022_11_28/models/group_0542.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ class WebhookCodeScanningAlertClosedByUserPropAlert(GitHubModel):
dismissed_reason: Union[
None, Literal["false positive", "won't fix", "used in tests"]
] = Field(description="The reason for dismissing or closing the alert.")
fixed_at: Missing[None] = Field(
fixed_at: Missing[Union[_dt.datetime, None]] = Field(
default=UNSET,
description="The time that the alert was fixed in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`.",
)
Expand Down
2 changes: 1 addition & 1 deletion githubkit/versions/v2022_11_28/models/group_0548.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ class WebhookCodeScanningAlertReopenedPropAlert(GitHubModel):
dismissed_reason: Union[str, None] = Field(
description="The reason for dismissing or closing the alert. Can be one of: `false positive`, `won't fix`, and `used in tests`."
)
fixed_at: Missing[None] = Field(
fixed_at: Missing[Union[_dt.datetime, None]] = Field(
default=UNSET,
description="The time that the alert was fixed in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`.",
)
Expand Down
2 changes: 1 addition & 1 deletion githubkit/versions/v2022_11_28/models/group_0550.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ class WebhookCodeScanningAlertReopenedByUserPropAlert(GitHubModel):
dismissed_reason: None = Field(
description="The reason for dismissing or closing the alert. Can be one of: `false positive`, `won't fix`, and `used in tests`."
)
fixed_at: Missing[None] = Field(
fixed_at: Missing[Union[_dt.datetime, None]] = Field(
default=UNSET,
description="The time that the alert was fixed in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`.",
)
Expand Down
2 changes: 1 addition & 1 deletion githubkit/versions/v2022_11_28/models/group_0552.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ class WebhookCodeScanningAlertUpdatedAssignmentPropAlert(GitHubModel):
dismissed_reason: Union[
None, Literal["false positive", "won't fix", "used in tests"]
] = Field(description="The reason for dismissing or closing the alert.")
fixed_at: Missing[None] = Field(
fixed_at: Missing[Union[_dt.datetime, None]] = Field(
default=UNSET,
description="The time that the alert was fixed in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`.",
)
Expand Down
4 changes: 2 additions & 2 deletions githubkit/versions/v2022_11_28/types/group_0540.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ class WebhookCodeScanningAlertAppearedInBranchPropAlertType(TypedDict):
dismissed_reason: Union[
None, Literal["false positive", "won't fix", "used in tests"]
]
fixed_at: NotRequired[None]
fixed_at: NotRequired[Union[_dt.datetime, None]]
html_url: str
most_recent_instance: NotRequired[
Union[
Expand Down Expand Up @@ -64,7 +64,7 @@ class WebhookCodeScanningAlertAppearedInBranchPropAlertTypeForResponse(TypedDict
dismissed_reason: Union[
None, Literal["false positive", "won't fix", "used in tests"]
]
fixed_at: NotRequired[None]
fixed_at: NotRequired[Union[str, None]]
html_url: str
most_recent_instance: NotRequired[
Union[
Expand Down
4 changes: 2 additions & 2 deletions githubkit/versions/v2022_11_28/types/group_0542.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ class WebhookCodeScanningAlertClosedByUserPropAlertType(TypedDict):
dismissed_reason: Union[
None, Literal["false positive", "won't fix", "used in tests"]
]
fixed_at: NotRequired[None]
fixed_at: NotRequired[Union[_dt.datetime, None]]
html_url: str
most_recent_instance: NotRequired[
Union[
Expand Down Expand Up @@ -70,7 +70,7 @@ class WebhookCodeScanningAlertClosedByUserPropAlertTypeForResponse(TypedDict):
dismissed_reason: Union[
None, Literal["false positive", "won't fix", "used in tests"]
]
fixed_at: NotRequired[None]
fixed_at: NotRequired[Union[str, None]]
html_url: str
most_recent_instance: NotRequired[
Union[
Expand Down
4 changes: 2 additions & 2 deletions githubkit/versions/v2022_11_28/types/group_0548.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ class WebhookCodeScanningAlertReopenedPropAlertType(TypedDict):
]
dismissed_comment: NotRequired[Union[str, None]]
dismissed_reason: Union[str, None]
fixed_at: NotRequired[None]
fixed_at: NotRequired[Union[_dt.datetime, None]]
html_url: str
instances_url: NotRequired[str]
most_recent_instance: NotRequired[
Expand Down Expand Up @@ -59,7 +59,7 @@ class WebhookCodeScanningAlertReopenedPropAlertTypeForResponse(TypedDict):
]
dismissed_comment: NotRequired[Union[str, None]]
dismissed_reason: Union[str, None]
fixed_at: NotRequired[None]
fixed_at: NotRequired[Union[str, None]]
html_url: str
instances_url: NotRequired[str]
most_recent_instance: NotRequired[
Expand Down
4 changes: 2 additions & 2 deletions githubkit/versions/v2022_11_28/types/group_0550.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ class WebhookCodeScanningAlertReopenedByUserPropAlertType(TypedDict):
dismissed_by: None
dismissed_comment: NotRequired[Union[str, None]]
dismissed_reason: None
fixed_at: NotRequired[None]
fixed_at: NotRequired[Union[_dt.datetime, None]]
html_url: str
most_recent_instance: NotRequired[
Union[
Expand All @@ -55,7 +55,7 @@ class WebhookCodeScanningAlertReopenedByUserPropAlertTypeForResponse(TypedDict):
dismissed_by: None
dismissed_comment: NotRequired[Union[str, None]]
dismissed_reason: None
fixed_at: NotRequired[None]
fixed_at: NotRequired[Union[str, None]]
html_url: str
most_recent_instance: NotRequired[
Union[
Expand Down
4 changes: 2 additions & 2 deletions githubkit/versions/v2022_11_28/types/group_0552.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ class WebhookCodeScanningAlertUpdatedAssignmentPropAlertType(TypedDict):
dismissed_reason: Union[
None, Literal["false positive", "won't fix", "used in tests"]
]
fixed_at: NotRequired[None]
fixed_at: NotRequired[Union[_dt.datetime, None]]
html_url: str
most_recent_instance: NotRequired[
Union[
Expand Down Expand Up @@ -64,7 +64,7 @@ class WebhookCodeScanningAlertUpdatedAssignmentPropAlertTypeForResponse(TypedDic
dismissed_reason: Union[
None, Literal["false positive", "won't fix", "used in tests"]
]
fixed_at: NotRequired[None]
fixed_at: NotRequired[Union[str, None]]
html_url: str
most_recent_instance: NotRequired[
Union[
Expand Down
5 changes: 5 additions & 0 deletions githubkit/versions/versions.lock
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,11 @@ source = "https://raw.githubusercontent.com/github/rest-api-description/ee16ba11
"/components/schemas/webhook-workflow-run-requested/properties/workflow_run/properties/pull_requests/items/properties/number" = {type = "integer"}
"/components/schemas/webhook-code-scanning-alert-fixed/properties/alert/properties/fixed_at" = {type = ["string", "null"], format = "date-time"}
"/components/schemas/webhook-code-scanning-alert-fixed/properties/alert/properties/state/enum" = {"<add>" = ["dismissed"]}
"/components/schemas/webhook-code-scanning-alert-closed-by-user/properties/alert/properties/fixed_at" = {type = ["string", "null"], format = "date-time"}
"/components/schemas/webhook-code-scanning-alert-appeared-in-branch/properties/alert/properties/fixed_at" = {type = ["string", "null"], format = "date-time"}
"/components/schemas/webhook-code-scanning-alert-reopened/properties/alert/properties/fixed_at" = {type = ["string", "null"], format = "date-time"}
"/components/schemas/webhook-code-scanning-alert-reopened-by-user/properties/alert/properties/fixed_at" = {type = ["string", "null"], format = "date-time"}
"/components/schemas/webhook-code-scanning-alert-updated-assignment/properties/alert/properties/fixed_at" = {type = ["string", "null"], format = "date-time"}
"/webhooks/repository-dispatch-sample.collected/post" = {operationId = "repository-dispatch"}
"/components/schemas/webhooks_answer/properties/parent_id" = {type = ["integer", "null"]}
"/components/schemas/dependabot-alert-with-repository/properties/dependency/properties/relationship/enum" = {"<add>" = ["inconclusive"]}
Expand Down
23 changes: 23 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -561,6 +561,29 @@ source = "descriptions-next/ghec/ghec.2022-11-28.json"
"/components/schemas/webhook-code-scanning-alert-fixed/properties/alert/properties/state/enum" = { "<add>" = [
"dismissed",
] }
# https://github.com/yanyongyu/githubkit/issues/279
# https://github.com/github/rest-api-description/issues/6081
"/components/schemas/webhook-code-scanning-alert-closed-by-user/properties/alert/properties/fixed_at" = { type = [
"string",
"null",
], format = "date-time" }
# other same issues
"/components/schemas/webhook-code-scanning-alert-appeared-in-branch/properties/alert/properties/fixed_at" = { type = [
"string",
"null",
], format = "date-time" }
"/components/schemas/webhook-code-scanning-alert-reopened/properties/alert/properties/fixed_at" = { type = [
"string",
"null",
], format = "date-time" }
"/components/schemas/webhook-code-scanning-alert-reopened-by-user/properties/alert/properties/fixed_at" = { type = [
"string",
"null",
], format = "date-time" }
"/components/schemas/webhook-code-scanning-alert-updated-assignment/properties/alert/properties/fixed_at" = { type = [
"string",
"null",
], format = "date-time" }

# webhook repository dispatch action can be any string
"/webhooks/repository-dispatch-sample.collected/post" = { operationId = "repository-dispatch" }
Expand Down
Loading