@@ -2932,9 +2932,9 @@ class OrganizationFull(GitHubRestModel):
2932
2932
public_members_url: str = Field(default=...)
2933
2933
avatar_url: str = Field(default=...)
2934
2934
description: Union[str, None] = Field(default=...)
2935
- name: Missing[str] = Field(default=UNSET)
2935
+ name: Missing[Union[ str, None] ] = Field(default=UNSET)
2936
2936
company: Missing[Union[str, None]] = Field(default=UNSET)
2937
- blog: Missing[str] = Field(default=UNSET)
2937
+ blog: Missing[Union[ str, None] ] = Field(default=UNSET)
2938
2938
location: Missing[Union[str, None]] = Field(default=UNSET)
2939
2939
email: Missing[Union[str, None]] = Field(default=UNSET)
2940
2940
twitter_username: Missing[Union[str, None]] = Field(default=UNSET)
@@ -4459,7 +4459,7 @@ class RepositoryRuleDeletion(GitHubRestModel):
4459
4459
class RepositoryRuleRequiredLinearHistory(GitHubRestModel):
4460
4460
"""required_linear_history
4461
4461
4462
- Prevent merge commits from being pushed to matching branches .
4462
+ Prevent merge commits from being pushed to matching refs .
4463
4463
"""
4464
4464
4465
4465
type: Literal["required_linear_history"] = Field(default=...)
@@ -4468,8 +4468,8 @@ class RepositoryRuleRequiredLinearHistory(GitHubRestModel):
4468
4468
class RepositoryRuleRequiredDeployments(GitHubRestModel):
4469
4469
"""required_deployments
4470
4470
4471
- Choose which environments must be successfully deployed to before branches can
4472
- be merged into a branch that matches this rule.
4471
+ Choose which environments must be successfully deployed to before refs can be
4472
+ merged into a branch that matches this rule.
4473
4473
"""
4474
4474
4475
4475
type: Literal["required_deployments"] = Field(default=...)
@@ -4490,7 +4490,7 @@ class RepositoryRuleRequiredDeploymentsPropParameters(GitHubRestModel):
4490
4490
class RepositoryRuleRequiredSignatures(GitHubRestModel):
4491
4491
"""required_signatures
4492
4492
4493
- Commits pushed to matching branches must have verified signatures.
4493
+ Commits pushed to matching refs must have verified signatures.
4494
4494
"""
4495
4495
4496
4496
type: Literal["required_signatures"] = Field(default=...)
@@ -4554,7 +4554,7 @@ class RepositoryRuleRequiredStatusChecks(GitHubRestModel):
4554
4554
4555
4555
Choose which status checks must pass before branches can be merged into a branch
4556
4556
that matches this rule. When enabled, commits must first be pushed to another
4557
- branch, then merged or pushed directly to a branch that matches this rule after
4557
+ branch, then merged or pushed directly to a ref that matches this rule after
4558
4558
status checks have passed.
4559
4559
"""
4560
4560
@@ -4579,7 +4579,7 @@ class RepositoryRuleRequiredStatusChecksPropParameters(GitHubRestModel):
4579
4579
class RepositoryRuleNonFastForward(GitHubRestModel):
4580
4580
"""non_fast_forward
4581
4581
4582
- Prevent users with push access from force pushing to branches .
4582
+ Prevent users with push access from force pushing to refs .
4583
4583
"""
4584
4584
4585
4585
type: Literal["non_fast_forward"] = Field(default=...)
@@ -5147,9 +5147,9 @@ class TeamOrganization(GitHubRestModel):
5147
5147
public_members_url: str = Field(default=...)
5148
5148
avatar_url: str = Field(default=...)
5149
5149
description: Union[str, None] = Field(default=...)
5150
- name: Missing[str] = Field(default=UNSET)
5150
+ name: Missing[Union[ str, None] ] = Field(default=UNSET)
5151
5151
company: Missing[Union[str, None]] = Field(default=UNSET)
5152
- blog: Missing[str] = Field(default=UNSET)
5152
+ blog: Missing[Union[ str, None] ] = Field(default=UNSET)
5153
5153
location: Missing[Union[str, None]] = Field(default=UNSET)
5154
5154
email: Missing[Union[str, None]] = Field(default=UNSET)
5155
5155
twitter_username: Missing[Union[str, None]] = Field(default=UNSET)
@@ -9002,6 +9002,10 @@ class EnvironmentPropProtectionRulesItemsAnyof1(GitHubRestModel):
9002
9002
9003
9003
id: int = Field(default=...)
9004
9004
node_id: str = Field(default=...)
9005
+ prevent_self_review: Missing[bool] = Field(
9006
+ description="Whether deployments to this environment can be approved by the user who created the deployment.",
9007
+ default=UNSET,
9008
+ )
9005
9009
type: str = Field(default=...)
9006
9010
reviewers: Missing[
9007
9011
List[EnvironmentPropProtectionRulesItemsAnyof1PropReviewersItems]
@@ -13302,6 +13306,35 @@ class KeySimple(GitHubRestModel):
13302
13306
key: str = Field(default=...)
13303
13307
13304
13308
13309
+ class EnterpriseWebhooks(GitHubRestModel):
13310
+ """Enterprise
13311
+
13312
+ An enterprise on GitHub. Webhook payloads contain the `enterprise` property when
13313
+ the webhook is configured
13314
+ on an enterprise account or an organization that's part of an enterprise
13315
+ account. For more information,
13316
+ see "[About enterprise accounts](https://docs.github.com/admin/overview/about-
13317
+ enterprise-accounts)."
13318
+ """
13319
+
13320
+ description: Missing[Union[str, None]] = Field(
13321
+ description="A short description of the enterprise.", default=UNSET
13322
+ )
13323
+ html_url: str = Field(default=...)
13324
+ website_url: Missing[Union[str, None]] = Field(
13325
+ description="The enterprise's website URL.", default=UNSET
13326
+ )
13327
+ id: int = Field(description="Unique identifier of the enterprise", default=...)
13328
+ node_id: str = Field(default=...)
13329
+ name: str = Field(description="The name of the enterprise.", default=...)
13330
+ slug: str = Field(
13331
+ description="The slug url identifier for the enterprise.", default=...
13332
+ )
13333
+ created_at: Union[datetime, None] = Field(default=...)
13334
+ updated_at: Union[datetime, None] = Field(default=...)
13335
+ avatar_url: str = Field(default=...)
13336
+
13337
+
13305
13338
class SimpleInstallation(GitHubRestModel):
13306
13339
"""Simple Installation
13307
13340
@@ -20793,6 +20826,7 @@ class UserSshSigningKeysPostBody(GitHubRestModel):
20793
20826
Hovercard.update_forward_refs()
20794
20827
HovercardPropContextsItems.update_forward_refs()
20795
20828
KeySimple.update_forward_refs()
20829
+ EnterpriseWebhooks.update_forward_refs()
20796
20830
SimpleInstallation.update_forward_refs()
20797
20831
OrganizationSimpleWebhooks.update_forward_refs()
20798
20832
RepositoryWebhooks.update_forward_refs()
@@ -21852,6 +21886,7 @@ class UserSshSigningKeysPostBody(GitHubRestModel):
21852
21886
"Hovercard",
21853
21887
"HovercardPropContextsItems",
21854
21888
"KeySimple",
21889
+ "EnterpriseWebhooks",
21855
21890
"SimpleInstallation",
21856
21891
"OrganizationSimpleWebhooks",
21857
21892
"RepositoryWebhooks",
0 commit comments