GitHubKit 0.11.13__py3-none-any.whl → 0.11.14__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.
- githubkit/config.py +3 -0
- githubkit/core.py +5 -0
- githubkit/github.py +3 -0
- githubkit/versions/ghec_v2022_11_28/models/group_0088.py +0 -1
- githubkit/versions/ghec_v2022_11_28/rest/actions.py +652 -472
- githubkit/versions/ghec_v2022_11_28/rest/activity.py +60 -44
- githubkit/versions/ghec_v2022_11_28/rest/apps.py +102 -74
- githubkit/versions/ghec_v2022_11_28/rest/billing.py +40 -32
- githubkit/versions/ghec_v2022_11_28/rest/checks.py +84 -64
- githubkit/versions/ghec_v2022_11_28/rest/code_scanning.py +74 -58
- githubkit/versions/ghec_v2022_11_28/rest/code_security.py +86 -66
- githubkit/versions/ghec_v2022_11_28/rest/codespaces.py +218 -154
- githubkit/versions/ghec_v2022_11_28/rest/copilot.py +72 -40
- githubkit/versions/ghec_v2022_11_28/rest/dependabot.py +68 -52
- githubkit/versions/ghec_v2022_11_28/rest/dependency_graph.py +14 -10
- githubkit/versions/ghec_v2022_11_28/rest/enterprise_admin.py +278 -208
- githubkit/versions/ghec_v2022_11_28/rest/gists.py +56 -40
- githubkit/versions/ghec_v2022_11_28/rest/git.py +84 -60
- githubkit/versions/ghec_v2022_11_28/rest/interactions.py +42 -30
- githubkit/versions/ghec_v2022_11_28/rest/issues.py +250 -198
- githubkit/versions/ghec_v2022_11_28/rest/markdown.py +34 -26
- githubkit/versions/ghec_v2022_11_28/rest/migrations.py +92 -60
- githubkit/versions/ghec_v2022_11_28/rest/oidc.py +14 -10
- githubkit/versions/ghec_v2022_11_28/rest/orgs.py +362 -246
- githubkit/versions/ghec_v2022_11_28/rest/projects.py +170 -126
- githubkit/versions/ghec_v2022_11_28/rest/pulls.py +234 -170
- githubkit/versions/ghec_v2022_11_28/rest/reactions.py +166 -130
- githubkit/versions/ghec_v2022_11_28/rest/repos.py +1020 -766
- githubkit/versions/ghec_v2022_11_28/rest/scim.py +50 -34
- githubkit/versions/ghec_v2022_11_28/rest/secret_scanning.py +36 -28
- githubkit/versions/ghec_v2022_11_28/rest/security_advisories.py +42 -30
- githubkit/versions/ghec_v2022_11_28/rest/teams.py +324 -238
- githubkit/versions/ghec_v2022_11_28/rest/users.py +154 -118
- githubkit/versions/ghec_v2022_11_28/types/group_0088.py +0 -1
- githubkit/versions/v2022_11_28/models/group_0060.py +0 -1
- githubkit/versions/v2022_11_28/rest/actions.py +534 -386
- githubkit/versions/v2022_11_28/rest/activity.py +60 -44
- githubkit/versions/v2022_11_28/rest/apps.py +102 -74
- githubkit/versions/v2022_11_28/rest/checks.py +84 -64
- githubkit/versions/v2022_11_28/rest/code_scanning.py +74 -58
- githubkit/versions/v2022_11_28/rest/code_security.py +86 -66
- githubkit/versions/v2022_11_28/rest/codespaces.py +218 -154
- githubkit/versions/v2022_11_28/rest/copilot.py +72 -40
- githubkit/versions/v2022_11_28/rest/dependabot.py +68 -52
- githubkit/versions/v2022_11_28/rest/dependency_graph.py +14 -10
- githubkit/versions/v2022_11_28/rest/gists.py +56 -40
- githubkit/versions/v2022_11_28/rest/git.py +84 -60
- githubkit/versions/v2022_11_28/rest/interactions.py +42 -30
- githubkit/versions/v2022_11_28/rest/issues.py +250 -198
- githubkit/versions/v2022_11_28/rest/markdown.py +34 -26
- githubkit/versions/v2022_11_28/rest/migrations.py +92 -60
- githubkit/versions/v2022_11_28/rest/oidc.py +14 -10
- githubkit/versions/v2022_11_28/rest/orgs.py +240 -168
- githubkit/versions/v2022_11_28/rest/projects.py +170 -126
- githubkit/versions/v2022_11_28/rest/pulls.py +234 -170
- githubkit/versions/v2022_11_28/rest/reactions.py +166 -130
- githubkit/versions/v2022_11_28/rest/repos.py +1020 -766
- githubkit/versions/v2022_11_28/rest/secret_scanning.py +36 -28
- githubkit/versions/v2022_11_28/rest/security_advisories.py +42 -30
- githubkit/versions/v2022_11_28/rest/teams.py +274 -204
- githubkit/versions/v2022_11_28/rest/users.py +154 -118
- githubkit/versions/v2022_11_28/types/group_0060.py +0 -1
- {githubkit-0.11.13.dist-info → githubkit-0.11.14.dist-info}/METADATA +2 -1
- {githubkit-0.11.13.dist-info → githubkit-0.11.14.dist-info}/RECORD +66 -66
- {githubkit-0.11.13.dist-info → githubkit-0.11.14.dist-info}/WHEEL +1 -1
- {githubkit-0.11.13.dist-info → githubkit-0.11.14.dist-info}/LICENSE +0 -0
githubkit/config.py
CHANGED
|
@@ -17,6 +17,7 @@ class Config:
|
|
|
17
17
|
timeout: httpx.Timeout
|
|
18
18
|
http_cache: bool
|
|
19
19
|
auto_retry: Optional[RetryDecisionFunc]
|
|
20
|
+
rest_api_validate_body: bool
|
|
20
21
|
|
|
21
22
|
def dict(self) -> Dict[str, Any]:
|
|
22
23
|
return asdict(self)
|
|
@@ -83,6 +84,7 @@ def get_config(
|
|
|
83
84
|
timeout: Optional[Union[float, httpx.Timeout]] = None,
|
|
84
85
|
http_cache: bool = True,
|
|
85
86
|
auto_retry: Union[bool, RetryDecisionFunc] = True,
|
|
87
|
+
rest_api_validate_body: bool = True,
|
|
86
88
|
) -> Config:
|
|
87
89
|
return Config(
|
|
88
90
|
build_base_url(base_url),
|
|
@@ -92,4 +94,5 @@ def get_config(
|
|
|
92
94
|
build_timeout(timeout),
|
|
93
95
|
http_cache,
|
|
94
96
|
build_auto_retry(auto_retry),
|
|
97
|
+
rest_api_validate_body,
|
|
95
98
|
)
|
githubkit/core.py
CHANGED
|
@@ -93,6 +93,7 @@ class GitHubCore(Generic[A]):
|
|
|
93
93
|
timeout: Optional[Union[float, httpx.Timeout]] = None,
|
|
94
94
|
http_cache: bool = True,
|
|
95
95
|
auto_retry: Union[bool, RetryDecisionFunc] = True,
|
|
96
|
+
rest_api_validate_body: bool = True,
|
|
96
97
|
): ...
|
|
97
98
|
|
|
98
99
|
# token auth without config
|
|
@@ -109,6 +110,7 @@ class GitHubCore(Generic[A]):
|
|
|
109
110
|
timeout: Optional[Union[float, httpx.Timeout]] = None,
|
|
110
111
|
http_cache: bool = True,
|
|
111
112
|
auto_retry: Union[bool, RetryDecisionFunc] = True,
|
|
113
|
+
rest_api_validate_body: bool = True,
|
|
112
114
|
): ...
|
|
113
115
|
|
|
114
116
|
# other auth strategies without config
|
|
@@ -125,6 +127,7 @@ class GitHubCore(Generic[A]):
|
|
|
125
127
|
timeout: Optional[Union[float, httpx.Timeout]] = None,
|
|
126
128
|
http_cache: bool = True,
|
|
127
129
|
auto_retry: Union[bool, RetryDecisionFunc] = True,
|
|
130
|
+
rest_api_validate_body: bool = True,
|
|
128
131
|
): ...
|
|
129
132
|
|
|
130
133
|
def __init__(
|
|
@@ -140,6 +143,7 @@ class GitHubCore(Generic[A]):
|
|
|
140
143
|
timeout: Optional[Union[float, httpx.Timeout]] = None,
|
|
141
144
|
http_cache: bool = True,
|
|
142
145
|
auto_retry: Union[bool, RetryDecisionFunc] = True,
|
|
146
|
+
rest_api_validate_body: bool = True,
|
|
143
147
|
):
|
|
144
148
|
auth = auth or UnauthAuthStrategy() # type: ignore
|
|
145
149
|
self.auth: A = ( # type: ignore
|
|
@@ -155,6 +159,7 @@ class GitHubCore(Generic[A]):
|
|
|
155
159
|
timeout,
|
|
156
160
|
http_cache,
|
|
157
161
|
auto_retry,
|
|
162
|
+
rest_api_validate_body,
|
|
158
163
|
)
|
|
159
164
|
|
|
160
165
|
self.__sync_client: ContextVar[Optional[httpx.Client]] = ContextVar(
|
githubkit/github.py
CHANGED
|
@@ -84,6 +84,7 @@ class GitHub(GitHubCore[A]):
|
|
|
84
84
|
timeout: Optional[Union[float, httpx.Timeout]] = None,
|
|
85
85
|
http_cache: bool = True,
|
|
86
86
|
auto_retry: Union[bool, RetryDecisionFunc] = True,
|
|
87
|
+
rest_api_validate_body: bool = True,
|
|
87
88
|
): ...
|
|
88
89
|
|
|
89
90
|
# token auth without config
|
|
@@ -100,6 +101,7 @@ class GitHub(GitHubCore[A]):
|
|
|
100
101
|
timeout: Optional[Union[float, httpx.Timeout]] = None,
|
|
101
102
|
http_cache: bool = True,
|
|
102
103
|
auto_retry: Union[bool, RetryDecisionFunc] = True,
|
|
104
|
+
rest_api_validate_body: bool = True,
|
|
103
105
|
): ...
|
|
104
106
|
|
|
105
107
|
# other auth strategies without config
|
|
@@ -116,6 +118,7 @@ class GitHub(GitHubCore[A]):
|
|
|
116
118
|
timeout: Optional[Union[float, httpx.Timeout]] = None,
|
|
117
119
|
http_cache: bool = True,
|
|
118
120
|
auto_retry: Union[bool, RetryDecisionFunc] = True,
|
|
121
|
+
rest_api_validate_body: bool = True,
|
|
119
122
|
): ...
|
|
120
123
|
|
|
121
124
|
def __init__(self, *args, **kwargs): ...
|
|
@@ -62,7 +62,6 @@ class OrganizationFull(GitHubModel):
|
|
|
62
62
|
owned_private_repos: Missing[int] = Field(default=UNSET)
|
|
63
63
|
private_gists: Missing[Union[int, None]] = Field(default=UNSET)
|
|
64
64
|
disk_usage: Missing[Union[int, None]] = Field(default=UNSET)
|
|
65
|
-
collaborators: Missing[Union[int, None]] = Field(default=UNSET)
|
|
66
65
|
billing_email: Missing[Union[str, None]] = Field(default=UNSET)
|
|
67
66
|
plan: Missing[OrganizationFullPropPlan] = Field(default=UNSET)
|
|
68
67
|
default_repository_permission: Missing[Union[str, None]] = Field(default=UNSET)
|