GitHubKit 0.11.9__py3-none-any.whl → 0.11.10__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of GitHubKit might be problematic. Click here for more details.

Files changed (125) hide show
  1. githubkit/versions/ghec_v2022_11_28/models/group_0040.py +12 -0
  2. githubkit/versions/ghec_v2022_11_28/models/group_0090.py +6 -0
  3. githubkit/versions/ghec_v2022_11_28/models/group_0121.py +3 -2
  4. githubkit/versions/ghec_v2022_11_28/models/group_0138.py +0 -6
  5. githubkit/versions/ghec_v2022_11_28/models/group_0141.py +0 -3
  6. githubkit/versions/ghec_v2022_11_28/models/group_0165.py +0 -3
  7. githubkit/versions/ghec_v2022_11_28/models/group_0166.py +1 -2
  8. githubkit/versions/ghec_v2022_11_28/models/group_0226.py +1 -1
  9. githubkit/versions/ghec_v2022_11_28/models/group_0390.py +10 -4
  10. githubkit/versions/ghec_v2022_11_28/models/group_0825.py +3 -3
  11. githubkit/versions/ghec_v2022_11_28/models/group_0828.py +2 -2
  12. githubkit/versions/ghec_v2022_11_28/models/group_0829.py +3 -3
  13. githubkit/versions/ghec_v2022_11_28/models/group_0863.py +3 -3
  14. githubkit/versions/ghec_v2022_11_28/models/group_0864.py +2 -2
  15. githubkit/versions/ghec_v2022_11_28/models/group_0865.py +3 -3
  16. githubkit/versions/ghec_v2022_11_28/models/group_0876.py +6 -0
  17. githubkit/versions/ghec_v2022_11_28/models/group_0878.py +6 -0
  18. githubkit/versions/ghec_v2022_11_28/models/group_0883.py +2 -2
  19. githubkit/versions/ghec_v2022_11_28/models/group_0884.py +2 -2
  20. githubkit/versions/ghec_v2022_11_28/models/group_0885.py +2 -2
  21. githubkit/versions/ghec_v2022_11_28/models/group_0891.py +2 -2
  22. githubkit/versions/ghec_v2022_11_28/models/group_0893.py +2 -2
  23. githubkit/versions/ghec_v2022_11_28/models/group_0895.py +2 -2
  24. githubkit/versions/ghec_v2022_11_28/models/group_0897.py +2 -2
  25. githubkit/versions/ghec_v2022_11_28/models/group_0916.py +3 -3
  26. githubkit/versions/ghec_v2022_11_28/models/group_0918.py +3 -3
  27. githubkit/versions/ghec_v2022_11_28/models/group_0921.py +3 -3
  28. githubkit/versions/ghec_v2022_11_28/models/group_0922.py +3 -2
  29. githubkit/versions/ghec_v2022_11_28/models/group_0923.py +3 -3
  30. githubkit/versions/ghec_v2022_11_28/models/group_0925.py +1 -2
  31. githubkit/versions/ghec_v2022_11_28/models/group_0926.py +1 -2
  32. githubkit/versions/ghec_v2022_11_28/models/group_0968.py +3 -3
  33. githubkit/versions/ghec_v2022_11_28/models/group_0969.py +2 -2
  34. githubkit/versions/ghec_v2022_11_28/models/group_0970.py +3 -3
  35. githubkit/versions/ghec_v2022_11_28/models/group_1006.py +2 -2
  36. githubkit/versions/ghec_v2022_11_28/models/group_1007.py +2 -2
  37. githubkit/versions/ghec_v2022_11_28/models/group_1008.py +2 -2
  38. githubkit/versions/ghec_v2022_11_28/models/group_1009.py +2 -2
  39. githubkit/versions/ghec_v2022_11_28/models/group_1010.py +2 -2
  40. githubkit/versions/ghec_v2022_11_28/models/group_1011.py +2 -2
  41. githubkit/versions/ghec_v2022_11_28/models/group_1016.py +3 -3
  42. githubkit/versions/ghec_v2022_11_28/models/group_1017.py +3 -3
  43. githubkit/versions/ghec_v2022_11_28/models/group_1018.py +3 -3
  44. githubkit/versions/ghec_v2022_11_28/models/group_1074.py +2 -2
  45. githubkit/versions/ghec_v2022_11_28/models/group_1075.py +2 -2
  46. githubkit/versions/ghec_v2022_11_28/models/group_1077.py +2 -2
  47. githubkit/versions/ghec_v2022_11_28/models/group_1078.py +2 -2
  48. githubkit/versions/ghec_v2022_11_28/models/group_1128.py +1 -2
  49. githubkit/versions/ghec_v2022_11_28/models/group_1129.py +1 -2
  50. githubkit/versions/ghec_v2022_11_28/models/group_1138.py +2 -2
  51. githubkit/versions/ghec_v2022_11_28/models/group_1139.py +2 -2
  52. githubkit/versions/ghec_v2022_11_28/models/group_1140.py +2 -2
  53. githubkit/versions/ghec_v2022_11_28/models/group_1165.py +2 -2
  54. githubkit/versions/ghec_v2022_11_28/models/group_1166.py +2 -2
  55. githubkit/versions/ghec_v2022_11_28/rest/code_security.py +12 -0
  56. githubkit/versions/ghec_v2022_11_28/rest/issues.py +16 -8
  57. githubkit/versions/ghec_v2022_11_28/rest/users.py +16 -4
  58. githubkit/versions/ghec_v2022_11_28/types/group_0040.py +3 -0
  59. githubkit/versions/ghec_v2022_11_28/types/group_0090.py +3 -0
  60. githubkit/versions/ghec_v2022_11_28/types/group_0138.py +0 -6
  61. githubkit/versions/ghec_v2022_11_28/types/group_0141.py +0 -3
  62. githubkit/versions/ghec_v2022_11_28/types/group_0165.py +0 -3
  63. githubkit/versions/ghec_v2022_11_28/types/group_0876.py +3 -0
  64. githubkit/versions/ghec_v2022_11_28/types/group_0878.py +3 -0
  65. githubkit/versions/v2022_11_28/models/group_0070.py +12 -0
  66. githubkit/versions/v2022_11_28/models/group_0074.py +6 -0
  67. githubkit/versions/v2022_11_28/models/group_0096.py +3 -2
  68. githubkit/versions/v2022_11_28/models/group_0113.py +0 -6
  69. githubkit/versions/v2022_11_28/models/group_0116.py +0 -3
  70. githubkit/versions/v2022_11_28/models/group_0140.py +0 -3
  71. githubkit/versions/v2022_11_28/models/group_0141.py +1 -2
  72. githubkit/versions/v2022_11_28/models/group_0203.py +1 -1
  73. githubkit/versions/v2022_11_28/models/group_0789.py +3 -3
  74. githubkit/versions/v2022_11_28/models/group_0792.py +2 -2
  75. githubkit/versions/v2022_11_28/models/group_0793.py +3 -3
  76. githubkit/versions/v2022_11_28/models/group_0805.py +6 -0
  77. githubkit/versions/v2022_11_28/models/group_0807.py +6 -0
  78. githubkit/versions/v2022_11_28/models/group_0812.py +2 -2
  79. githubkit/versions/v2022_11_28/models/group_0813.py +2 -2
  80. githubkit/versions/v2022_11_28/models/group_0814.py +2 -2
  81. githubkit/versions/v2022_11_28/models/group_0820.py +2 -2
  82. githubkit/versions/v2022_11_28/models/group_0822.py +2 -2
  83. githubkit/versions/v2022_11_28/models/group_0824.py +2 -2
  84. githubkit/versions/v2022_11_28/models/group_0826.py +2 -2
  85. githubkit/versions/v2022_11_28/models/group_0844.py +3 -3
  86. githubkit/versions/v2022_11_28/models/group_0846.py +3 -3
  87. githubkit/versions/v2022_11_28/models/group_0849.py +3 -3
  88. githubkit/versions/v2022_11_28/models/group_0850.py +3 -2
  89. githubkit/versions/v2022_11_28/models/group_0851.py +3 -3
  90. githubkit/versions/v2022_11_28/models/group_0853.py +1 -2
  91. githubkit/versions/v2022_11_28/models/group_0854.py +1 -2
  92. githubkit/versions/v2022_11_28/models/group_0894.py +3 -3
  93. githubkit/versions/v2022_11_28/models/group_0895.py +2 -2
  94. githubkit/versions/v2022_11_28/models/group_0896.py +3 -3
  95. githubkit/versions/v2022_11_28/models/group_0932.py +2 -2
  96. githubkit/versions/v2022_11_28/models/group_0933.py +2 -2
  97. githubkit/versions/v2022_11_28/models/group_0934.py +2 -2
  98. githubkit/versions/v2022_11_28/models/group_0935.py +2 -2
  99. githubkit/versions/v2022_11_28/models/group_0936.py +2 -2
  100. githubkit/versions/v2022_11_28/models/group_0937.py +2 -2
  101. githubkit/versions/v2022_11_28/models/group_0942.py +3 -3
  102. githubkit/versions/v2022_11_28/models/group_0943.py +3 -3
  103. githubkit/versions/v2022_11_28/models/group_0944.py +3 -3
  104. githubkit/versions/v2022_11_28/models/group_1000.py +2 -2
  105. githubkit/versions/v2022_11_28/models/group_1001.py +2 -2
  106. githubkit/versions/v2022_11_28/models/group_1003.py +2 -2
  107. githubkit/versions/v2022_11_28/models/group_1004.py +2 -2
  108. githubkit/versions/v2022_11_28/models/group_1054.py +1 -2
  109. githubkit/versions/v2022_11_28/models/group_1055.py +1 -2
  110. githubkit/versions/v2022_11_28/models/group_1087.py +2 -2
  111. githubkit/versions/v2022_11_28/models/group_1088.py +2 -2
  112. githubkit/versions/v2022_11_28/rest/code_security.py +12 -0
  113. githubkit/versions/v2022_11_28/rest/issues.py +16 -8
  114. githubkit/versions/v2022_11_28/rest/users.py +16 -4
  115. githubkit/versions/v2022_11_28/types/group_0070.py +3 -0
  116. githubkit/versions/v2022_11_28/types/group_0074.py +3 -0
  117. githubkit/versions/v2022_11_28/types/group_0113.py +0 -6
  118. githubkit/versions/v2022_11_28/types/group_0116.py +0 -3
  119. githubkit/versions/v2022_11_28/types/group_0140.py +0 -3
  120. githubkit/versions/v2022_11_28/types/group_0805.py +3 -0
  121. githubkit/versions/v2022_11_28/types/group_0807.py +3 -0
  122. {githubkit-0.11.9.dist-info → githubkit-0.11.10.dist-info}/METADATA +1 -1
  123. {githubkit-0.11.9.dist-info → githubkit-0.11.10.dist-info}/RECORD +125 -125
  124. {githubkit-0.11.9.dist-info → githubkit-0.11.10.dist-info}/LICENSE +0 -0
  125. {githubkit-0.11.9.dist-info → githubkit-0.11.10.dist-info}/WHEEL +0 -0
@@ -38,9 +38,21 @@ class CodeScanningAlertRuleSummary(GitHubModel):
38
38
  default=UNSET,
39
39
  description="A short description of the rule used to detect the alert.",
40
40
  )
41
+ full_description: Missing[str] = Field(
42
+ default=UNSET, description="A description of the rule used to detect the alert."
43
+ )
41
44
  tags: Missing[Union[List[str], None]] = Field(
42
45
  default=UNSET, description="A set of tags applicable for the rule."
43
46
  )
47
+ help_: Missing[Union[str, None]] = Field(
48
+ default=UNSET,
49
+ alias="help",
50
+ description="Detailed documentation for the rule as GitHub Flavored Markdown.",
51
+ )
52
+ help_uri: Missing[Union[str, None]] = Field(
53
+ default=UNSET,
54
+ description="A link to the documentation for the rule used to detect the alert.",
55
+ )
44
56
 
45
57
 
46
58
  model_rebuild(CodeScanningAlertRuleSummary)
@@ -85,6 +85,12 @@ class CodeSecurityConfiguration(GitHubModel):
85
85
  default=UNSET,
86
86
  description="The enablement status of secret scanning validity checks",
87
87
  )
88
+ secret_scanning_non_provider_patterns: Missing[
89
+ Literal["enabled", "disabled", "not_set"]
90
+ ] = Field(
91
+ default=UNSET,
92
+ description="The enablement status of secret scanning non-provider patterns",
93
+ )
88
94
  private_vulnerability_reporting: Missing[
89
95
  Literal["enabled", "disabled", "not_set"]
90
96
  ] = Field(
@@ -16,7 +16,7 @@ from pydantic import Field
16
16
 
17
17
  from githubkit.utils import UNSET
18
18
  from githubkit.typing import Missing
19
- from githubkit.compat import GitHubModel, model_rebuild
19
+ from githubkit.compat import PYDANTIC_V2, GitHubModel, model_rebuild
20
20
 
21
21
 
22
22
  class CustomProperty(GitHubModel):
@@ -45,7 +45,8 @@ class CustomProperty(GitHubModel):
45
45
  allowed_values: Missing[
46
46
  Union[
47
47
  Annotated[
48
- List[Annotated[str, Field(max_length=75)]], Field(max_length=200)
48
+ List[Annotated[str, Field(max_length=75)]],
49
+ Field(max_length=200 if PYDANTIC_V2 else None),
49
50
  ],
50
51
  None,
51
52
  ]
@@ -57,9 +57,6 @@ class RepositoryRuleNonFastForward(GitHubModel):
57
57
  class RepositoryRuleOneof15(GitHubModel):
58
58
  """file_path_restriction
59
59
 
60
- > [!NOTE]
61
- > `file_path_restriction` is in beta and subject to change.
62
-
63
60
  Prevent commits that include changes in specified file paths from being pushed
64
61
  to the commit graph.
65
62
  """
@@ -79,9 +76,6 @@ class RepositoryRuleOneof15PropParameters(GitHubModel):
79
76
  class RepositoryRuleOneof17(GitHubModel):
80
77
  """file_extension_restriction
81
78
 
82
- > [!NOTE]
83
- > `file_extension_restriction` is in beta and subject to change.
84
-
85
79
  Prevent commits that include files with specified file extensions from being
86
80
  pushed to the commit graph.
87
81
  """
@@ -30,9 +30,6 @@ class RepositoryRuleRequiredLinearHistory(GitHubModel):
30
30
  class RepositoryRuleOneof16(GitHubModel):
31
31
  """max_file_path_length
32
32
 
33
- > [!NOTE]
34
- > `max_file_path_length` is in beta and subject to change.
35
-
36
33
  Prevent commits that include file paths that exceed a specified character limit
37
34
  from being pushed to the commit graph.
38
35
  """
@@ -21,9 +21,6 @@ from githubkit.compat import GitHubModel, model_rebuild
21
21
  class RepositoryRuleOneof18(GitHubModel):
22
22
  """max_file_size
23
23
 
24
- > [!NOTE]
25
- > `max_file_size` is in beta and subject to change.
26
-
27
24
  Prevent commits that exceed a specified file size limit from being pushed to the
28
25
  commit.
29
26
  """
@@ -56,8 +56,7 @@ class RepositoryRuleset(GitHubModel):
56
56
  id: int = Field(description="The ID of the ruleset")
57
57
  name: str = Field(description="The name of the ruleset")
58
58
  target: Missing[Literal["branch", "tag", "push"]] = Field(
59
- default=UNSET,
60
- description="The target of the ruleset\n\n> [!NOTE]\n> The `push` target is in beta and is subject to change.",
59
+ default=UNSET, description="The target of the ruleset"
61
60
  )
62
61
  source_type: Missing[Literal["Repository", "Organization"]] = Field(
63
62
  default=UNSET, description="The type of the source of the ruleset"
@@ -88,7 +88,7 @@ class CodeScanningAlertRule(GitHubModel):
88
88
  description="A short description of the rule used to detect the alert.",
89
89
  )
90
90
  full_description: Missing[str] = Field(
91
- default=UNSET, description="description of the rule used to detect the alert."
91
+ default=UNSET, description="A description of the rule used to detect the alert."
92
92
  )
93
93
  tags: Missing[Union[List[str], None]] = Field(
94
94
  default=UNSET, description="A set of tags applicable for the rule."
@@ -16,7 +16,7 @@ from pydantic import Field
16
16
 
17
17
  from githubkit.utils import UNSET
18
18
  from githubkit.typing import Missing
19
- from githubkit.compat import GitHubModel, model_rebuild
19
+ from githubkit.compat import PYDANTIC_V2, GitHubModel, model_rebuild
20
20
 
21
21
 
22
22
  class ScimUserList(GitHubModel):
@@ -25,7 +25,9 @@ class ScimUserList(GitHubModel):
25
25
  SCIM User List
26
26
  """
27
27
 
28
- schemas: List[str] = Field(min_length=1, description="SCIM schema used.")
28
+ schemas: List[str] = Field(
29
+ min_length=1 if PYDANTIC_V2 else None, description="SCIM schema used."
30
+ )
29
31
  total_results: int = Field(alias="totalResults")
30
32
  items_per_page: int = Field(alias="itemsPerPage")
31
33
  start_index: int = Field(alias="startIndex")
@@ -38,7 +40,9 @@ class ScimUser(GitHubModel):
38
40
  SCIM /Users provisioning endpoints
39
41
  """
40
42
 
41
- schemas: List[str] = Field(min_length=1, description="SCIM schema used.")
43
+ schemas: List[str] = Field(
44
+ min_length=1 if PYDANTIC_V2 else None, description="SCIM schema used."
45
+ )
42
46
  id: str = Field(description="Unique identifier of an external identity")
43
47
  external_id: Missing[Union[str, None]] = Field(
44
48
  default=UNSET, alias="externalId", description="The ID of the User."
@@ -61,7 +65,9 @@ class ScimUser(GitHubModel):
61
65
  default=UNSET, description="The ID of the organization."
62
66
  )
63
67
  operations: Missing[List[ScimUserPropOperationsItems]] = Field(
64
- min_length=1, default=UNSET, description="Set of operations to be performed"
68
+ min_length=1 if PYDANTIC_V2 else None,
69
+ default=UNSET,
70
+ description="Set of operations to be performed",
65
71
  )
66
72
  groups: Missing[List[ScimUserPropGroupsItems]] = Field(
67
73
  default=UNSET, description="associated groups"
@@ -15,7 +15,7 @@ from pydantic import Field
15
15
 
16
16
  from githubkit.utils import UNSET
17
17
  from githubkit.typing import Missing
18
- from githubkit.compat import GitHubModel, model_rebuild
18
+ from githubkit.compat import PYDANTIC_V2, GitHubModel, model_rebuild
19
19
 
20
20
 
21
21
  class EnterprisesEnterpriseActionsRunnersGenerateJitconfigPostBody(GitHubModel):
@@ -26,8 +26,8 @@ class EnterprisesEnterpriseActionsRunnersGenerateJitconfigPostBody(GitHubModel):
26
26
  description="The ID of the runner group to register the runner to."
27
27
  )
28
28
  labels: List[str] = Field(
29
- max_length=100,
30
- min_length=1,
29
+ max_length=100 if PYDANTIC_V2 else None,
30
+ min_length=1 if PYDANTIC_V2 else None,
31
31
  description="The names of the custom labels to add to the runner. **Minimum items**: 1. **Maximum items**: 100.",
32
32
  )
33
33
  work_folder: Missing[str] = Field(
@@ -13,14 +13,14 @@ from typing import List
13
13
 
14
14
  from pydantic import Field
15
15
 
16
- from githubkit.compat import GitHubModel, model_rebuild
16
+ from githubkit.compat import PYDANTIC_V2, GitHubModel, model_rebuild
17
17
 
18
18
 
19
19
  class EnterprisesEnterpriseActionsRunnersRunnerIdLabelsPutBody(GitHubModel):
20
20
  """EnterprisesEnterpriseActionsRunnersRunnerIdLabelsPutBody"""
21
21
 
22
22
  labels: List[str] = Field(
23
- max_length=100,
23
+ max_length=100 if PYDANTIC_V2 else None,
24
24
  description="The names of the custom labels to set for the runner. You can pass an empty array to remove all custom labels.",
25
25
  )
26
26
 
@@ -13,15 +13,15 @@ from typing import List
13
13
 
14
14
  from pydantic import Field
15
15
 
16
- from githubkit.compat import GitHubModel, model_rebuild
16
+ from githubkit.compat import PYDANTIC_V2, GitHubModel, model_rebuild
17
17
 
18
18
 
19
19
  class EnterprisesEnterpriseActionsRunnersRunnerIdLabelsPostBody(GitHubModel):
20
20
  """EnterprisesEnterpriseActionsRunnersRunnerIdLabelsPostBody"""
21
21
 
22
22
  labels: List[str] = Field(
23
- max_length=100,
24
- min_length=1,
23
+ max_length=100 if PYDANTIC_V2 else None,
24
+ min_length=1 if PYDANTIC_V2 else None,
25
25
  description="The names of the custom labels to add to the runner.",
26
26
  )
27
27
 
@@ -15,7 +15,7 @@ from pydantic import Field
15
15
 
16
16
  from githubkit.utils import UNSET
17
17
  from githubkit.typing import Missing
18
- from githubkit.compat import GitHubModel, model_rebuild
18
+ from githubkit.compat import PYDANTIC_V2, GitHubModel, model_rebuild
19
19
 
20
20
 
21
21
  class OrgsOrgActionsRunnersGenerateJitconfigPostBody(GitHubModel):
@@ -26,8 +26,8 @@ class OrgsOrgActionsRunnersGenerateJitconfigPostBody(GitHubModel):
26
26
  description="The ID of the runner group to register the runner to."
27
27
  )
28
28
  labels: List[str] = Field(
29
- max_length=100,
30
- min_length=1,
29
+ max_length=100 if PYDANTIC_V2 else None,
30
+ min_length=1 if PYDANTIC_V2 else None,
31
31
  description="The names of the custom labels to add to the runner. **Minimum items**: 1. **Maximum items**: 100.",
32
32
  )
33
33
  work_folder: Missing[str] = Field(
@@ -13,14 +13,14 @@ from typing import List
13
13
 
14
14
  from pydantic import Field
15
15
 
16
- from githubkit.compat import GitHubModel, model_rebuild
16
+ from githubkit.compat import PYDANTIC_V2, GitHubModel, model_rebuild
17
17
 
18
18
 
19
19
  class OrgsOrgActionsRunnersRunnerIdLabelsPutBody(GitHubModel):
20
20
  """OrgsOrgActionsRunnersRunnerIdLabelsPutBody"""
21
21
 
22
22
  labels: List[str] = Field(
23
- max_length=100,
23
+ max_length=100 if PYDANTIC_V2 else None,
24
24
  description="The names of the custom labels to set for the runner. You can pass an empty array to remove all custom labels.",
25
25
  )
26
26
 
@@ -13,15 +13,15 @@ from typing import List
13
13
 
14
14
  from pydantic import Field
15
15
 
16
- from githubkit.compat import GitHubModel, model_rebuild
16
+ from githubkit.compat import PYDANTIC_V2, GitHubModel, model_rebuild
17
17
 
18
18
 
19
19
  class OrgsOrgActionsRunnersRunnerIdLabelsPostBody(GitHubModel):
20
20
  """OrgsOrgActionsRunnersRunnerIdLabelsPostBody"""
21
21
 
22
22
  labels: List[str] = Field(
23
- max_length=100,
24
- min_length=1,
23
+ max_length=100 if PYDANTIC_V2 else None,
24
+ min_length=1 if PYDANTIC_V2 else None,
25
25
  description="The names of the custom labels to add to the runner.",
26
26
  )
27
27
 
@@ -74,6 +74,12 @@ class OrgsOrgCodeSecurityConfigurationsPostBody(GitHubModel):
74
74
  default=UNSET,
75
75
  description="The enablement status of secret scanning validity checks",
76
76
  )
77
+ secret_scanning_non_provider_patterns: Missing[
78
+ Literal["enabled", "disabled", "not_set"]
79
+ ] = Field(
80
+ default=UNSET,
81
+ description="The enablement status of secret scanning non provider patterns",
82
+ )
77
83
  private_vulnerability_reporting: Missing[
78
84
  Literal["enabled", "disabled", "not_set"]
79
85
  ] = Field(
@@ -77,6 +77,12 @@ class OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBody(GitHubModel):
77
77
  default=UNSET,
78
78
  description="The enablement status of secret scanning validity checks",
79
79
  )
80
+ secret_scanning_non_provider_patterns: Missing[
81
+ Literal["enabled", "disabled", "not_set"]
82
+ ] = Field(
83
+ default=UNSET,
84
+ description="The enablement status of secret scanning non-provider patterns",
85
+ )
80
86
  private_vulnerability_reporting: Missing[
81
87
  Literal["enabled", "disabled", "not_set"]
82
88
  ] = Field(
@@ -15,7 +15,7 @@ from pydantic import Field
15
15
 
16
16
  from githubkit.utils import UNSET
17
17
  from githubkit.typing import Missing
18
- from githubkit.compat import GitHubModel, model_rebuild
18
+ from githubkit.compat import PYDANTIC_V2, GitHubModel, model_rebuild
19
19
 
20
20
 
21
21
  class OrgsOrgCodespacesAccessPutBody(GitHubModel):
@@ -30,7 +30,7 @@ class OrgsOrgCodespacesAccessPutBody(GitHubModel):
30
30
  description="Which users can access codespaces in the organization. `disabled` means that no users can access codespaces in the organization."
31
31
  )
32
32
  selected_usernames: Missing[List[str]] = Field(
33
- max_length=100,
33
+ max_length=100 if PYDANTIC_V2 else None,
34
34
  default=UNSET,
35
35
  description="The usernames of the organization members who should have access to codespaces in the organization. Required when `visibility` is `selected_members`. The provided list of usernames will replace any existing value.",
36
36
  )
@@ -13,14 +13,14 @@ from typing import List
13
13
 
14
14
  from pydantic import Field
15
15
 
16
- from githubkit.compat import GitHubModel, model_rebuild
16
+ from githubkit.compat import PYDANTIC_V2, GitHubModel, model_rebuild
17
17
 
18
18
 
19
19
  class OrgsOrgCodespacesAccessSelectedUsersPostBody(GitHubModel):
20
20
  """OrgsOrgCodespacesAccessSelectedUsersPostBody"""
21
21
 
22
22
  selected_usernames: List[str] = Field(
23
- max_length=100,
23
+ max_length=100 if PYDANTIC_V2 else None,
24
24
  description="The usernames of the organization members whose codespaces be billed to the organization.",
25
25
  )
26
26
 
@@ -13,14 +13,14 @@ from typing import List
13
13
 
14
14
  from pydantic import Field
15
15
 
16
- from githubkit.compat import GitHubModel, model_rebuild
16
+ from githubkit.compat import PYDANTIC_V2, GitHubModel, model_rebuild
17
17
 
18
18
 
19
19
  class OrgsOrgCodespacesAccessSelectedUsersDeleteBody(GitHubModel):
20
20
  """OrgsOrgCodespacesAccessSelectedUsersDeleteBody"""
21
21
 
22
22
  selected_usernames: List[str] = Field(
23
- max_length=100,
23
+ max_length=100 if PYDANTIC_V2 else None,
24
24
  description="The usernames of the organization members whose codespaces should not be billed to the organization.",
25
25
  )
26
26
 
@@ -13,14 +13,14 @@ from typing import List
13
13
 
14
14
  from pydantic import Field
15
15
 
16
- from githubkit.compat import GitHubModel, model_rebuild
16
+ from githubkit.compat import PYDANTIC_V2, GitHubModel, model_rebuild
17
17
 
18
18
 
19
19
  class OrgsOrgCopilotBillingSelectedTeamsPostBody(GitHubModel):
20
20
  """OrgsOrgCopilotBillingSelectedTeamsPostBody"""
21
21
 
22
22
  selected_teams: List[str] = Field(
23
- min_length=1,
23
+ min_length=1 if PYDANTIC_V2 else None,
24
24
  description="List of team names within the organization to which to grant access to GitHub Copilot.",
25
25
  )
26
26
 
@@ -13,14 +13,14 @@ from typing import List
13
13
 
14
14
  from pydantic import Field
15
15
 
16
- from githubkit.compat import GitHubModel, model_rebuild
16
+ from githubkit.compat import PYDANTIC_V2, GitHubModel, model_rebuild
17
17
 
18
18
 
19
19
  class OrgsOrgCopilotBillingSelectedTeamsDeleteBody(GitHubModel):
20
20
  """OrgsOrgCopilotBillingSelectedTeamsDeleteBody"""
21
21
 
22
22
  selected_teams: List[str] = Field(
23
- min_length=1,
23
+ min_length=1 if PYDANTIC_V2 else None,
24
24
  description="The names of teams from which to revoke access to GitHub Copilot.",
25
25
  )
26
26
 
@@ -13,14 +13,14 @@ from typing import List
13
13
 
14
14
  from pydantic import Field
15
15
 
16
- from githubkit.compat import GitHubModel, model_rebuild
16
+ from githubkit.compat import PYDANTIC_V2, GitHubModel, model_rebuild
17
17
 
18
18
 
19
19
  class OrgsOrgCopilotBillingSelectedUsersPostBody(GitHubModel):
20
20
  """OrgsOrgCopilotBillingSelectedUsersPostBody"""
21
21
 
22
22
  selected_usernames: List[str] = Field(
23
- min_length=1,
23
+ min_length=1 if PYDANTIC_V2 else None,
24
24
  description="The usernames of the organization members to be granted access to GitHub Copilot.",
25
25
  )
26
26
 
@@ -13,14 +13,14 @@ from typing import List
13
13
 
14
14
  from pydantic import Field
15
15
 
16
- from githubkit.compat import GitHubModel, model_rebuild
16
+ from githubkit.compat import PYDANTIC_V2, GitHubModel, model_rebuild
17
17
 
18
18
 
19
19
  class OrgsOrgCopilotBillingSelectedUsersDeleteBody(GitHubModel):
20
20
  """OrgsOrgCopilotBillingSelectedUsersDeleteBody"""
21
21
 
22
22
  selected_usernames: List[str] = Field(
23
- min_length=1,
23
+ min_length=1 if PYDANTIC_V2 else None,
24
24
  description="The usernames of the organization members for which to revoke access to GitHub Copilot.",
25
25
  )
26
26
 
@@ -16,15 +16,15 @@ from pydantic import Field
16
16
 
17
17
  from githubkit.utils import UNSET
18
18
  from githubkit.typing import Missing
19
- from githubkit.compat import GitHubModel, model_rebuild
19
+ from githubkit.compat import PYDANTIC_V2, GitHubModel, model_rebuild
20
20
 
21
21
 
22
22
  class OrgsOrgPersonalAccessTokenRequestsPostBody(GitHubModel):
23
23
  """OrgsOrgPersonalAccessTokenRequestsPostBody"""
24
24
 
25
25
  pat_request_ids: Missing[List[int]] = Field(
26
- max_length=100,
27
- min_length=1,
26
+ max_length=100 if PYDANTIC_V2 else None,
27
+ min_length=1 if PYDANTIC_V2 else None,
28
28
  default=UNSET,
29
29
  description="Unique identifiers of the requests for access via fine-grained personal access token. Must be formed of between 1 and 100 `pat_request_id` values.",
30
30
  )
@@ -13,7 +13,7 @@ from typing import List, Literal
13
13
 
14
14
  from pydantic import Field
15
15
 
16
- from githubkit.compat import GitHubModel, model_rebuild
16
+ from githubkit.compat import PYDANTIC_V2, GitHubModel, model_rebuild
17
17
 
18
18
 
19
19
  class OrgsOrgPersonalAccessTokensPostBody(GitHubModel):
@@ -23,8 +23,8 @@ class OrgsOrgPersonalAccessTokensPostBody(GitHubModel):
23
23
  description="Action to apply to the fine-grained personal access token."
24
24
  )
25
25
  pat_ids: List[int] = Field(
26
- max_length=100,
27
- min_length=1,
26
+ max_length=100 if PYDANTIC_V2 else None,
27
+ min_length=1 if PYDANTIC_V2 else None,
28
28
  description="The IDs of the fine-grained personal access tokens.",
29
29
  )
30
30
 
@@ -13,7 +13,7 @@ from typing import List
13
13
 
14
14
  from pydantic import Field
15
15
 
16
- from githubkit.compat import GitHubModel, model_rebuild
16
+ from githubkit.compat import PYDANTIC_V2, GitHubModel, model_rebuild
17
17
 
18
18
  from .group_0121 import CustomProperty
19
19
 
@@ -22,8 +22,8 @@ class OrgsOrgPropertiesSchemaPatchBody(GitHubModel):
22
22
  """OrgsOrgPropertiesSchemaPatchBody"""
23
23
 
24
24
  properties: List[CustomProperty] = Field(
25
- max_length=100,
26
- min_length=1,
25
+ max_length=100 if PYDANTIC_V2 else None,
26
+ min_length=1 if PYDANTIC_V2 else None,
27
27
  description="The array of custom properties to create or update.",
28
28
  )
29
29
 
@@ -16,7 +16,7 @@ from pydantic import Field
16
16
 
17
17
  from githubkit.utils import UNSET
18
18
  from githubkit.typing import Missing
19
- from githubkit.compat import GitHubModel, model_rebuild
19
+ from githubkit.compat import PYDANTIC_V2, GitHubModel, model_rebuild
20
20
 
21
21
 
22
22
  class OrgsOrgPropertiesSchemaCustomPropertyNamePutBody(GitHubModel):
@@ -37,7 +37,8 @@ class OrgsOrgPropertiesSchemaCustomPropertyNamePutBody(GitHubModel):
37
37
  allowed_values: Missing[
38
38
  Union[
39
39
  Annotated[
40
- List[Annotated[str, Field(max_length=75)]], Field(max_length=200)
40
+ List[Annotated[str, Field(max_length=75)]],
41
+ Field(max_length=200 if PYDANTIC_V2 else None),
41
42
  ],
42
43
  None,
43
44
  ]
@@ -13,7 +13,7 @@ from typing import List
13
13
 
14
14
  from pydantic import Field
15
15
 
16
- from githubkit.compat import GitHubModel, model_rebuild
16
+ from githubkit.compat import PYDANTIC_V2, GitHubModel, model_rebuild
17
17
 
18
18
  from .group_0122 import CustomPropertyValue
19
19
 
@@ -22,8 +22,8 @@ class OrgsOrgPropertiesValuesPatchBody(GitHubModel):
22
22
  """OrgsOrgPropertiesValuesPatchBody"""
23
23
 
24
24
  repository_names: List[str] = Field(
25
- max_length=30,
26
- min_length=1,
25
+ max_length=30 if PYDANTIC_V2 else None,
26
+ min_length=1 if PYDANTIC_V2 else None,
27
27
  description="The names of repositories that the custom property values will be applied to.",
28
28
  )
29
29
  properties: List[CustomPropertyValue] = Field(
@@ -50,8 +50,7 @@ class OrgsOrgRulesetsPostBody(GitHubModel):
50
50
 
51
51
  name: str = Field(description="The name of the ruleset.")
52
52
  target: Missing[Literal["branch", "tag", "push"]] = Field(
53
- default=UNSET,
54
- description="The target of the ruleset\n\n> [!NOTE]\n> The `push` target is in beta and is subject to change.",
53
+ default=UNSET, description="The target of the ruleset"
55
54
  )
56
55
  enforcement: Literal["disabled", "active", "evaluate"] = Field(
57
56
  description="The enforcement level of the ruleset. `evaluate` allows admins to test rules before enforcing them. Admins can view insights on the Rule Insights page."
@@ -50,8 +50,7 @@ class OrgsOrgRulesetsRulesetIdPutBody(GitHubModel):
50
50
 
51
51
  name: Missing[str] = Field(default=UNSET, description="The name of the ruleset.")
52
52
  target: Missing[Literal["branch", "tag", "push"]] = Field(
53
- default=UNSET,
54
- description="The target of the ruleset\n\n> [!NOTE]\n> The `push` target is in beta and is subject to change.",
53
+ default=UNSET, description="The target of the ruleset"
55
54
  )
56
55
  enforcement: Missing[Literal["disabled", "active", "evaluate"]] = Field(
57
56
  default=UNSET,
@@ -15,7 +15,7 @@ from pydantic import Field
15
15
 
16
16
  from githubkit.utils import UNSET
17
17
  from githubkit.typing import Missing
18
- from githubkit.compat import GitHubModel, model_rebuild
18
+ from githubkit.compat import PYDANTIC_V2, GitHubModel, model_rebuild
19
19
 
20
20
 
21
21
  class ReposOwnerRepoActionsRunnersGenerateJitconfigPostBody(GitHubModel):
@@ -26,8 +26,8 @@ class ReposOwnerRepoActionsRunnersGenerateJitconfigPostBody(GitHubModel):
26
26
  description="The ID of the runner group to register the runner to."
27
27
  )
28
28
  labels: List[str] = Field(
29
- max_length=100,
30
- min_length=1,
29
+ max_length=100 if PYDANTIC_V2 else None,
30
+ min_length=1 if PYDANTIC_V2 else None,
31
31
  description="The names of the custom labels to add to the runner. **Minimum items**: 1. **Maximum items**: 100.",
32
32
  )
33
33
  work_folder: Missing[str] = Field(
@@ -13,14 +13,14 @@ from typing import List
13
13
 
14
14
  from pydantic import Field
15
15
 
16
- from githubkit.compat import GitHubModel, model_rebuild
16
+ from githubkit.compat import PYDANTIC_V2, GitHubModel, model_rebuild
17
17
 
18
18
 
19
19
  class ReposOwnerRepoActionsRunnersRunnerIdLabelsPutBody(GitHubModel):
20
20
  """ReposOwnerRepoActionsRunnersRunnerIdLabelsPutBody"""
21
21
 
22
22
  labels: List[str] = Field(
23
- max_length=100,
23
+ max_length=100 if PYDANTIC_V2 else None,
24
24
  description="The names of the custom labels to set for the runner. You can pass an empty array to remove all custom labels.",
25
25
  )
26
26
 
@@ -13,15 +13,15 @@ from typing import List
13
13
 
14
14
  from pydantic import Field
15
15
 
16
- from githubkit.compat import GitHubModel, model_rebuild
16
+ from githubkit.compat import PYDANTIC_V2, GitHubModel, model_rebuild
17
17
 
18
18
 
19
19
  class ReposOwnerRepoActionsRunnersRunnerIdLabelsPostBody(GitHubModel):
20
20
  """ReposOwnerRepoActionsRunnersRunnerIdLabelsPostBody"""
21
21
 
22
22
  labels: List[str] = Field(
23
- max_length=100,
24
- min_length=1,
23
+ max_length=100 if PYDANTIC_V2 else None,
24
+ min_length=1 if PYDANTIC_V2 else None,
25
25
  description="The names of the custom labels to add to the runner.",
26
26
  )
27
27
 
@@ -15,7 +15,7 @@ from pydantic import Field
15
15
 
16
16
  from githubkit.utils import UNSET
17
17
  from githubkit.typing import Missing
18
- from githubkit.compat import GitHubModel, model_rebuild
18
+ from githubkit.compat import PYDANTIC_V2, GitHubModel, model_rebuild
19
19
 
20
20
 
21
21
  class ReposOwnerRepoCheckRunsPostBodyPropOutput(GitHubModel):
@@ -39,7 +39,7 @@ class ReposOwnerRepoCheckRunsPostBodyPropOutput(GitHubModel):
39
39
  annotations: Missing[
40
40
  List[ReposOwnerRepoCheckRunsPostBodyPropOutputPropAnnotationsItems]
41
41
  ] = Field(
42
- max_length=50,
42
+ max_length=50 if PYDANTIC_V2 else None,
43
43
  default=UNSET,
44
44
  description='Adds information from your analysis to specific lines of code. Annotations are visible on GitHub in the **Checks** and **Files changed** tab of the pull request. The Checks API limits the number of annotations to a maximum of 50 per API request. To create more than 50 annotations, you have to make multiple requests to the [Update a check run](https://docs.github.com/enterprise-cloud@latest//rest/checks/runs#update-a-check-run) endpoint. Each time you update the check run, annotations are appended to the list of annotations that already exist for the check run. GitHub Actions are limited to 10 warning annotations and 10 error annotations per step. For details about how you can view annotations on GitHub, see "[About status checks](https://docs.github.com/enterprise-cloud@latest//articles/about-status-checks#checks)".',
45
45
  )