Skip to content

Commit 840b068

Browse files
authored
👽 re-generate openapi models
1 parent 5446a12 commit 840b068

24 files changed

Lines changed: 168 additions & 38 deletions

githubkit/versions/ghec_v2022_11_28/models/group_0518.py

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
from __future__ import annotations
1111

1212
from datetime import datetime
13-
from typing import Literal, Union
13+
from typing import Annotated, Literal, Union
1414

1515
from pydantic import Field
1616

@@ -75,9 +75,19 @@ class WebhookCodeScanningAlertAppearedInBranchPropAlert(GitHubModel):
7575
dismissed_by: Union[
7676
WebhookCodeScanningAlertAppearedInBranchPropAlertPropDismissedBy, None
7777
] = Field(title="User")
78+
dismissed_comment: Missing[Union[Annotated[str, Field(max_length=280)], None]] = (
79+
Field(
80+
default=UNSET,
81+
description="The dismissal comment associated with the dismissal of the alert.",
82+
)
83+
)
7884
dismissed_reason: Union[
7985
None, Literal["false positive", "won't fix", "used in tests"]
8086
] = Field(description="The reason for dismissing or closing the alert.")
87+
fixed_at: Missing[None] = Field(
88+
default=UNSET,
89+
description="The time that the alert was fixed in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`.",
90+
)
8191
html_url: str = Field(description="The GitHub URL of the alert resource.")
8292
most_recent_instance: Missing[
8393
Union[
@@ -87,8 +97,8 @@ class WebhookCodeScanningAlertAppearedInBranchPropAlert(GitHubModel):
8797
] = Field(default=UNSET, title="Alert Instance")
8898
number: int = Field(description="The code scanning alert number.")
8999
rule: WebhookCodeScanningAlertAppearedInBranchPropAlertPropRule = Field()
90-
state: Literal["open", "dismissed", "fixed"] = Field(
91-
description="State of a code scanning alert."
100+
state: Union[None, Literal["open", "dismissed", "fixed"]] = Field(
101+
description="State of a code scanning alert. Events for alerts found outside the default branch will return a `null` value until they are dismissed or fixed."
92102
)
93103
tool: WebhookCodeScanningAlertAppearedInBranchPropAlertPropTool = Field()
94104
url: str = Field()

githubkit/versions/ghec_v2022_11_28/models/group_0519.py

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
from __future__ import annotations
1111

1212
from datetime import datetime
13-
from typing import Literal, Union
13+
from typing import Annotated, Literal, Union
1414

1515
from pydantic import Field
1616

@@ -75,9 +75,19 @@ class WebhookCodeScanningAlertClosedByUserPropAlert(GitHubModel):
7575
dismissed_by: Union[
7676
WebhookCodeScanningAlertClosedByUserPropAlertPropDismissedBy, None
7777
] = Field(title="User")
78+
dismissed_comment: Missing[Union[Annotated[str, Field(max_length=280)], None]] = (
79+
Field(
80+
default=UNSET,
81+
description="The dismissal comment associated with the dismissal of the alert.",
82+
)
83+
)
7884
dismissed_reason: Union[
7985
None, Literal["false positive", "won't fix", "used in tests"]
8086
] = Field(description="The reason for dismissing or closing the alert.")
87+
fixed_at: Missing[None] = Field(
88+
default=UNSET,
89+
description="The time that the alert was fixed in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`.",
90+
)
8191
html_url: str = Field(description="The GitHub URL of the alert resource.")
8292
most_recent_instance: Missing[
8393
Union[WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstance, None]

githubkit/versions/ghec_v2022_11_28/models/group_0520.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,10 @@ class WebhookCodeScanningAlertCreatedPropAlert(GitHubModel):
8282
dismissed_reason: None = Field(
8383
description="The reason for dismissing or closing the alert. Can be one of: `false positive`, `won't fix`, and `used in tests`."
8484
)
85-
fixed_at: Missing[None] = Field(default=UNSET)
85+
fixed_at: Missing[None] = Field(
86+
default=UNSET,
87+
description="The time that the alert was fixed in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`.",
88+
)
8689
html_url: str = Field(description="The GitHub URL of the alert resource.")
8790
instances_url: Missing[str] = Field(default=UNSET)
8891
most_recent_instance: Missing[
@@ -91,7 +94,7 @@ class WebhookCodeScanningAlertCreatedPropAlert(GitHubModel):
9194
number: int = Field(description="The code scanning alert number.")
9295
rule: WebhookCodeScanningAlertCreatedPropAlertPropRule = Field()
9396
state: Union[None, Literal["open", "dismissed"]] = Field(
94-
description="State of a code scanning alert."
97+
description="State of a code scanning alert. Events for alerts found outside the default branch will return a `null` value until they are dismissed or fixed."
9598
)
9699
tool: Union[WebhookCodeScanningAlertCreatedPropAlertPropTool, None] = Field()
97100
updated_at: Missing[Union[str, None]] = Field(default=UNSET)

githubkit/versions/ghec_v2022_11_28/models/group_0521.py

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
from __future__ import annotations
1111

1212
from datetime import datetime
13-
from typing import Literal, Union
13+
from typing import Annotated, Literal, Union
1414

1515
from pydantic import Field
1616

@@ -75,17 +75,29 @@ class WebhookCodeScanningAlertFixedPropAlert(GitHubModel):
7575
dismissed_by: Union[WebhookCodeScanningAlertFixedPropAlertPropDismissedBy, None] = (
7676
Field(title="User")
7777
)
78+
dismissed_comment: Missing[Union[Annotated[str, Field(max_length=280)], None]] = (
79+
Field(
80+
default=UNSET,
81+
description="The dismissal comment associated with the dismissal of the alert.",
82+
)
83+
)
7884
dismissed_reason: Union[
7985
None, Literal["false positive", "won't fix", "used in tests"]
8086
] = Field(description="The reason for dismissing or closing the alert.")
87+
fixed_at: Missing[None] = Field(
88+
default=UNSET,
89+
description="The time that the alert was fixed in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`.",
90+
)
8191
html_url: str = Field(description="The GitHub URL of the alert resource.")
8292
instances_url: Missing[str] = Field(default=UNSET)
8393
most_recent_instance: Missing[
8494
Union[WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstance, None]
8595
] = Field(default=UNSET, title="Alert Instance")
8696
number: int = Field(description="The code scanning alert number.")
8797
rule: WebhookCodeScanningAlertFixedPropAlertPropRule = Field()
88-
state: Literal["fixed"] = Field(description="State of a code scanning alert.")
98+
state: Union[None, Literal["fixed"]] = Field(
99+
description="State of a code scanning alert. Events for alerts found outside the default branch will return a `null` value until they are dismissed or fixed."
100+
)
89101
tool: WebhookCodeScanningAlertFixedPropAlertPropTool = Field()
90102
url: str = Field()
91103

githubkit/versions/ghec_v2022_11_28/models/group_0522.py

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
from __future__ import annotations
1111

1212
from datetime import datetime
13-
from typing import Literal, Union
13+
from typing import Annotated, Literal, Union
1414

1515
from pydantic import Field
1616

@@ -75,17 +75,27 @@ class WebhookCodeScanningAlertReopenedPropAlert(GitHubModel):
7575
dismissed_by: Union[
7676
WebhookCodeScanningAlertReopenedPropAlertPropDismissedBy, None
7777
] = Field()
78+
dismissed_comment: Missing[Union[Annotated[str, Field(max_length=280)], None]] = (
79+
Field(
80+
default=UNSET,
81+
description="The dismissal comment associated with the dismissal of the alert.",
82+
)
83+
)
7884
dismissed_reason: Union[str, None] = Field(
7985
description="The reason for dismissing or closing the alert. Can be one of: `false positive`, `won't fix`, and `used in tests`."
8086
)
87+
fixed_at: Missing[None] = Field(
88+
default=UNSET,
89+
description="The time that the alert was fixed in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`.",
90+
)
8191
html_url: str = Field(description="The GitHub URL of the alert resource.")
8292
most_recent_instance: Missing[
8393
Union[WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstance, None]
8494
] = Field(default=UNSET, title="Alert Instance")
8595
number: int = Field(description="The code scanning alert number.")
8696
rule: WebhookCodeScanningAlertReopenedPropAlertPropRule = Field()
87-
state: Literal["open", "dismissed", "fixed"] = Field(
88-
description="State of a code scanning alert."
97+
state: Union[None, Literal["open", "dismissed", "fixed"]] = Field(
98+
description="State of a code scanning alert. Events for alerts found outside the default branch will return a `null` value until they are dismissed or fixed."
8999
)
90100
tool: WebhookCodeScanningAlertReopenedPropAlertPropTool = Field()
91101
url: str = Field()

githubkit/versions/ghec_v2022_11_28/models/group_0523.py

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
from __future__ import annotations
1111

1212
from datetime import datetime
13-
from typing import Literal, Union
13+
from typing import Annotated, Literal, Union
1414

1515
from pydantic import Field
1616

@@ -73,9 +73,19 @@ class WebhookCodeScanningAlertReopenedByUserPropAlert(GitHubModel):
7373
description="The time that the alert was dismissed in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`."
7474
)
7575
dismissed_by: None = Field()
76+
dismissed_comment: Missing[Union[Annotated[str, Field(max_length=280)], None]] = (
77+
Field(
78+
default=UNSET,
79+
description="The dismissal comment associated with the dismissal of the alert.",
80+
)
81+
)
7682
dismissed_reason: None = Field(
7783
description="The reason for dismissing or closing the alert. Can be one of: `false positive`, `won't fix`, and `used in tests`."
7884
)
85+
fixed_at: Missing[None] = Field(
86+
default=UNSET,
87+
description="The time that the alert was fixed in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`.",
88+
)
7989
html_url: str = Field(description="The GitHub URL of the alert resource.")
8090
most_recent_instance: Missing[
8191
Union[
@@ -84,8 +94,8 @@ class WebhookCodeScanningAlertReopenedByUserPropAlert(GitHubModel):
8494
] = Field(default=UNSET, title="Alert Instance")
8595
number: int = Field(description="The code scanning alert number.")
8696
rule: WebhookCodeScanningAlertReopenedByUserPropAlertPropRule = Field()
87-
state: Literal["open", "fixed"] = Field(
88-
description="State of a code scanning alert."
97+
state: Union[None, Literal["open", "fixed"]] = Field(
98+
description="State of a code scanning alert. Events for alerts found outside the default branch will return a `null` value until they are dismissed or fixed."
8999
)
90100
tool: WebhookCodeScanningAlertReopenedByUserPropAlertPropTool = Field()
91101
url: str = Field()

githubkit/versions/ghec_v2022_11_28/models/group_1188.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ class ReposOwnerRepoTopicsPutBody(GitHubModel):
1818
"""ReposOwnerRepoTopicsPutBody"""
1919

2020
names: list[str] = Field(
21-
description="An array of topics to add to the repository. Pass one or more topics to _replace_ the set of existing topics. Send an empty array (`[]`) to clear all topics from the repository. **Note:** Topic `names` cannot contain uppercase letters."
21+
description="An array of topics to add to the repository. Pass one or more topics to _replace_ the set of existing topics. Send an empty array (`[]`) to clear all topics from the repository. **Note:** Topic `names` will be saved as lowercase."
2222
)
2323

2424

githubkit/versions/ghec_v2022_11_28/types/group_0518.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,9 +45,11 @@ class WebhookCodeScanningAlertAppearedInBranchPropAlertType(TypedDict):
4545
dismissed_by: Union[
4646
WebhookCodeScanningAlertAppearedInBranchPropAlertPropDismissedByType, None
4747
]
48+
dismissed_comment: NotRequired[Union[str, None]]
4849
dismissed_reason: Union[
4950
None, Literal["false positive", "won't fix", "used in tests"]
5051
]
52+
fixed_at: NotRequired[None]
5153
html_url: str
5254
most_recent_instance: NotRequired[
5355
Union[
@@ -57,7 +59,7 @@ class WebhookCodeScanningAlertAppearedInBranchPropAlertType(TypedDict):
5759
]
5860
number: int
5961
rule: WebhookCodeScanningAlertAppearedInBranchPropAlertPropRuleType
60-
state: Literal["open", "dismissed", "fixed"]
62+
state: Union[None, Literal["open", "dismissed", "fixed"]]
6163
tool: WebhookCodeScanningAlertAppearedInBranchPropAlertPropToolType
6264
url: str
6365

githubkit/versions/ghec_v2022_11_28/types/group_0519.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,9 +45,11 @@ class WebhookCodeScanningAlertClosedByUserPropAlertType(TypedDict):
4545
dismissed_by: Union[
4646
WebhookCodeScanningAlertClosedByUserPropAlertPropDismissedByType, None
4747
]
48+
dismissed_comment: NotRequired[Union[str, None]]
4849
dismissed_reason: Union[
4950
None, Literal["false positive", "won't fix", "used in tests"]
5051
]
52+
fixed_at: NotRequired[None]
5153
html_url: str
5254
most_recent_instance: NotRequired[
5355
Union[

githubkit/versions/ghec_v2022_11_28/types/group_0521.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,17 +43,19 @@ class WebhookCodeScanningAlertFixedPropAlertType(TypedDict):
4343
created_at: datetime
4444
dismissed_at: Union[datetime, None]
4545
dismissed_by: Union[WebhookCodeScanningAlertFixedPropAlertPropDismissedByType, None]
46+
dismissed_comment: NotRequired[Union[str, None]]
4647
dismissed_reason: Union[
4748
None, Literal["false positive", "won't fix", "used in tests"]
4849
]
50+
fixed_at: NotRequired[None]
4951
html_url: str
5052
instances_url: NotRequired[str]
5153
most_recent_instance: NotRequired[
5254
Union[WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstanceType, None]
5355
]
5456
number: int
5557
rule: WebhookCodeScanningAlertFixedPropAlertPropRuleType
56-
state: Literal["fixed"]
58+
state: Union[None, Literal["fixed"]]
5759
tool: WebhookCodeScanningAlertFixedPropAlertPropToolType
5860
url: str
5961

0 commit comments

Comments
 (0)