githubkit 0.16.0__tar.gz → 0.16.1__tar.gz
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.
- {githubkit-0.16.0 → githubkit-0.16.1}/PKG-INFO +1 -1
- {githubkit-0.16.0 → githubkit-0.16.1}/githubkit/cache/mem_cache.py +7 -3
- {githubkit-0.16.0 → githubkit-0.16.1}/githubkit/core.py +11 -5
- {githubkit-0.16.0 → githubkit-0.16.1}/githubkit/throttling.py +7 -2
- githubkit-0.16.1/pyproject.toml +841 -0
- githubkit-0.16.0/pyproject.toml → githubkit-0.16.1/pyproject.toml.orig +16 -10
- {githubkit-0.16.0 → githubkit-0.16.1}/README.md +0 -0
- {githubkit-0.16.0 → githubkit-0.16.1}/githubkit/__init__.py +0 -0
- {githubkit-0.16.0 → githubkit-0.16.1}/githubkit/auth/__init__.py +0 -0
- {githubkit-0.16.0 → githubkit-0.16.1}/githubkit/auth/_url.py +0 -0
- {githubkit-0.16.0 → githubkit-0.16.1}/githubkit/auth/action.py +0 -0
- {githubkit-0.16.0 → githubkit-0.16.1}/githubkit/auth/app.py +0 -0
- {githubkit-0.16.0 → githubkit-0.16.1}/githubkit/auth/base.py +0 -0
- {githubkit-0.16.0 → githubkit-0.16.1}/githubkit/auth/oauth.py +0 -0
- {githubkit-0.16.0 → githubkit-0.16.1}/githubkit/auth/token.py +0 -0
- {githubkit-0.16.0 → githubkit-0.16.1}/githubkit/auth/unauth.py +0 -0
- {githubkit-0.16.0 → githubkit-0.16.1}/githubkit/cache/__init__.py +0 -0
- {githubkit-0.16.0 → githubkit-0.16.1}/githubkit/cache/base.py +0 -0
- {githubkit-0.16.0 → githubkit-0.16.1}/githubkit/cache/redis.py +0 -0
- {githubkit-0.16.0 → githubkit-0.16.1}/githubkit/compat.py +0 -0
- {githubkit-0.16.0 → githubkit-0.16.1}/githubkit/config.py +0 -0
- {githubkit-0.16.0 → githubkit-0.16.1}/githubkit/exception.py +0 -0
- {githubkit-0.16.0 → githubkit-0.16.1}/githubkit/github.py +0 -0
- {githubkit-0.16.0 → githubkit-0.16.1}/githubkit/graphql/__init__.py +0 -0
- {githubkit-0.16.0 → githubkit-0.16.1}/githubkit/graphql/models.py +0 -0
- {githubkit-0.16.0 → githubkit-0.16.1}/githubkit/graphql/paginator.py +0 -0
- {githubkit-0.16.0 → githubkit-0.16.1}/githubkit/hishel.py +0 -0
- {githubkit-0.16.0 → githubkit-0.16.1}/githubkit/log.py +0 -0
- {githubkit-0.16.0 → githubkit-0.16.1}/githubkit/module_hooks/alias_module.py +0 -0
- {githubkit-0.16.0 → githubkit-0.16.1}/githubkit/module_hooks/lazy_module.py +0 -0
- {githubkit-0.16.0 → githubkit-0.16.1}/githubkit/paginator.py +0 -0
- {githubkit-0.16.0 → githubkit-0.16.1}/githubkit/py.typed +0 -0
- {githubkit-0.16.0 → githubkit-0.16.1}/githubkit/response.py +0 -0
- {githubkit-0.16.0 → githubkit-0.16.1}/githubkit/rest/__init__.py +0 -0
- {githubkit-0.16.0 → githubkit-0.16.1}/githubkit/rest/paginator.py +0 -0
- {githubkit-0.16.0 → githubkit-0.16.1}/githubkit/retry.py +0 -0
- {githubkit-0.16.0 → githubkit-0.16.1}/githubkit/typing.py +0 -0
- {githubkit-0.16.0 → githubkit-0.16.1}/githubkit/utils.py +0 -0
- {githubkit-0.16.0 → githubkit-0.16.1}/githubkit/versions/__init__.py +0 -0
- {githubkit-0.16.0 → githubkit-0.16.1}/githubkit/webhooks/__init__.py +0 -0
|
@@ -27,8 +27,13 @@ class MemCache(AsyncBaseCache, BaseCache):
|
|
|
27
27
|
|
|
28
28
|
@override
|
|
29
29
|
def get(self, key: str) -> str | None:
|
|
30
|
-
self.
|
|
31
|
-
|
|
30
|
+
item = self._cache.get(key)
|
|
31
|
+
if item is None:
|
|
32
|
+
return None
|
|
33
|
+
if item.expire_at is not None and item.expire_at < datetime.now(timezone.utc):
|
|
34
|
+
self._cache.pop(key, None)
|
|
35
|
+
return None
|
|
36
|
+
return item.value
|
|
32
37
|
|
|
33
38
|
@override
|
|
34
39
|
async def aget(self, key: str) -> str | None:
|
|
@@ -36,7 +41,6 @@ class MemCache(AsyncBaseCache, BaseCache):
|
|
|
36
41
|
|
|
37
42
|
@override
|
|
38
43
|
def set(self, key: str, value: str, ex: timedelta) -> None:
|
|
39
|
-
self.expire()
|
|
40
44
|
self._cache[key] = _Item(value, datetime.now(timezone.utc) + ex)
|
|
41
45
|
|
|
42
46
|
@override
|
|
@@ -4,7 +4,7 @@ from contextvars import ContextVar
|
|
|
4
4
|
from datetime import datetime, timedelta, timezone
|
|
5
5
|
import time
|
|
6
6
|
from types import TracebackType
|
|
7
|
-
from typing import TYPE_CHECKING, Any, Generic, TypeVar,
|
|
7
|
+
from typing import TYPE_CHECKING, Any, Generic, TypeVar, overload
|
|
8
8
|
|
|
9
9
|
import anyio
|
|
10
10
|
import httpx
|
|
@@ -222,8 +222,11 @@ class GitHubCore(Generic[A]):
|
|
|
222
222
|
exc_value: BaseException | None = None,
|
|
223
223
|
traceback: TracebackType | None = None,
|
|
224
224
|
):
|
|
225
|
-
|
|
226
|
-
|
|
225
|
+
if client := self.__sync_client.get():
|
|
226
|
+
try:
|
|
227
|
+
client.close()
|
|
228
|
+
finally:
|
|
229
|
+
self.__sync_client.set(None)
|
|
227
230
|
|
|
228
231
|
# async context
|
|
229
232
|
async def __aenter__(self):
|
|
@@ -238,8 +241,11 @@ class GitHubCore(Generic[A]):
|
|
|
238
241
|
exc_value: BaseException | None = None,
|
|
239
242
|
traceback: TracebackType | None = None,
|
|
240
243
|
):
|
|
241
|
-
|
|
242
|
-
|
|
244
|
+
if client := self.__async_client.get():
|
|
245
|
+
try:
|
|
246
|
+
await client.aclose()
|
|
247
|
+
finally:
|
|
248
|
+
self.__async_client.set(None)
|
|
243
249
|
|
|
244
250
|
def _get_client_defaults(self) -> dict[str, Any]:
|
|
245
251
|
"""Get default arguments for creating a httpx client."""
|
|
@@ -37,19 +37,24 @@ class LocalThrottler(BaseThrottler):
|
|
|
37
37
|
|
|
38
38
|
def __init__(self, max_concurrency: int) -> None:
|
|
39
39
|
self.max_concurrency = max_concurrency
|
|
40
|
+
self._lock = threading.Lock()
|
|
40
41
|
self._semaphore: threading.Semaphore | None = None
|
|
41
42
|
self._async_semaphore: anyio.Semaphore | None = None
|
|
42
43
|
|
|
43
44
|
@property
|
|
44
45
|
def semaphore(self) -> threading.Semaphore:
|
|
45
46
|
if self._semaphore is None:
|
|
46
|
-
|
|
47
|
+
with self._lock:
|
|
48
|
+
if self._semaphore is None:
|
|
49
|
+
self._semaphore = threading.Semaphore(self.max_concurrency)
|
|
47
50
|
return self._semaphore
|
|
48
51
|
|
|
49
52
|
@property
|
|
50
53
|
def async_semaphore(self) -> anyio.Semaphore:
|
|
51
54
|
if self._async_semaphore is None:
|
|
52
|
-
|
|
55
|
+
with self._lock:
|
|
56
|
+
if self._async_semaphore is None:
|
|
57
|
+
self._async_semaphore = anyio.Semaphore(self.max_concurrency)
|
|
53
58
|
return self._async_semaphore
|
|
54
59
|
|
|
55
60
|
@override
|
|
@@ -0,0 +1,841 @@
|
|
|
1
|
+
[project]
|
|
2
|
+
name = "GitHubKit"
|
|
3
|
+
version = "0.16.1"
|
|
4
|
+
description = "GitHub SDK for Python"
|
|
5
|
+
license = "MIT"
|
|
6
|
+
readme = "README.md"
|
|
7
|
+
keywords = [
|
|
8
|
+
"github",
|
|
9
|
+
"octokit",
|
|
10
|
+
]
|
|
11
|
+
requires-python = ">=3.10, <4.0"
|
|
12
|
+
dependencies = [
|
|
13
|
+
"anyio >=3.6.1, <5.0.0",
|
|
14
|
+
"httpx >=0.23.0, <1.0.0",
|
|
15
|
+
"hishel[async,httpx] >=1.3.0, <=2.0.0",
|
|
16
|
+
"typing-extensions >=4.11.0, <5.0.0",
|
|
17
|
+
"pydantic >=1.9.1, <3.0.0, !=2.5.0, !=2.5.1",
|
|
18
|
+
"githubkit-schemas >=26.5.7",
|
|
19
|
+
]
|
|
20
|
+
|
|
21
|
+
[[project.authors]]
|
|
22
|
+
name = "yanyongyu"
|
|
23
|
+
email = "yyy@yyydl.top"
|
|
24
|
+
|
|
25
|
+
[project.optional-dependencies]
|
|
26
|
+
jwt = ["PyJWT[crypto] >=2.4.0, <3.0.0"]
|
|
27
|
+
auth-app = ["PyJWT[crypto] >=2.4.0, <3.0.0"]
|
|
28
|
+
auth-oauth-device = []
|
|
29
|
+
auth = ["PyJWT[crypto] >=2.4.0, <3.0.0"]
|
|
30
|
+
all-schemas = ["githubkit-schemas[all] >=26.5.7"]
|
|
31
|
+
all = [
|
|
32
|
+
"PyJWT[crypto] >=2.4.0, <3.0.0",
|
|
33
|
+
"githubkit-schemas[all] >=26.5.7",
|
|
34
|
+
]
|
|
35
|
+
|
|
36
|
+
[project.urls]
|
|
37
|
+
Homepage = "https://github.com/yanyongyu/githubkit"
|
|
38
|
+
Repository = "https://github.com/yanyongyu/githubkit"
|
|
39
|
+
Documentation = "https://github.com/yanyongyu/githubkit"
|
|
40
|
+
"Bug Tracker" = "https://github.com/yanyongyu/githubkit/issues"
|
|
41
|
+
|
|
42
|
+
[dependency-groups]
|
|
43
|
+
thirdparty = ["hishel[redis] >=1.2.0, <=2.0.0"]
|
|
44
|
+
dev = [
|
|
45
|
+
{ include-group = "thirdparty" },
|
|
46
|
+
{ include-group = "codegen" },
|
|
47
|
+
{ include-group = "test" },
|
|
48
|
+
{ include-group = "docs" },
|
|
49
|
+
"ruff >=0.16.0, <0.17.0",
|
|
50
|
+
"nonemoji >=0.1.2, <0.2.0",
|
|
51
|
+
"pre-commit >=4.0.0, <5.0.0",
|
|
52
|
+
]
|
|
53
|
+
codegen = [
|
|
54
|
+
"Jinja2 >=3.1.2, <4.0.0",
|
|
55
|
+
"tomlkit >=0.13.3, <0.16.0",
|
|
56
|
+
"jsonpointer >=3.0.0, <4.0.0",
|
|
57
|
+
"openapi-pydantic >=0.5.0, <0.6.0",
|
|
58
|
+
]
|
|
59
|
+
test = [
|
|
60
|
+
{ include-group = "thirdparty" },
|
|
61
|
+
"pytest >=8.1.0, <10.0.0",
|
|
62
|
+
"pytest-cov >=7.0.0, <8.0.0",
|
|
63
|
+
"pytest-xdist >=3.5.0, <4.0.0",
|
|
64
|
+
"coverage-conditional-plugin >=0.9.0, <0.10.0",
|
|
65
|
+
]
|
|
66
|
+
docs = [
|
|
67
|
+
"pygments>=2.18.0,<3",
|
|
68
|
+
"mkdocs-material>=9.5.39,<10",
|
|
69
|
+
"pymdown-extensions>=10.11.1,<11",
|
|
70
|
+
"mkdocs-git-committers-plugin-2>=2.4.1,<3",
|
|
71
|
+
"mkdocs-git-revision-date-localized-plugin>=1.2.9,<2",
|
|
72
|
+
]
|
|
73
|
+
pydantic-v1 = ["pydantic >=1.10.0, <2.0.0"]
|
|
74
|
+
pydantic-v2 = ["pydantic >=2.0.0, <3.0.0"]
|
|
75
|
+
|
|
76
|
+
[tool.uv]
|
|
77
|
+
required-version = ">=0.8.0"
|
|
78
|
+
conflicts = [[
|
|
79
|
+
{ group = "pydantic-v1" },
|
|
80
|
+
{ group = "pydantic-v2" },
|
|
81
|
+
]]
|
|
82
|
+
|
|
83
|
+
[tool.uv.sources.githubkit-schemas]
|
|
84
|
+
workspace = true
|
|
85
|
+
|
|
86
|
+
[tool.uv.workspace]
|
|
87
|
+
members = ["packages/*"]
|
|
88
|
+
|
|
89
|
+
[tool.uv.build-backend]
|
|
90
|
+
module-root = ""
|
|
91
|
+
|
|
92
|
+
[tool.pytest.ini_options]
|
|
93
|
+
addopts = "--cov=githubkit --cov-append --cov-report=term-missing"
|
|
94
|
+
filterwarnings = [
|
|
95
|
+
"error",
|
|
96
|
+
"ignore::DeprecationWarning",
|
|
97
|
+
]
|
|
98
|
+
|
|
99
|
+
[tool.coverage.run]
|
|
100
|
+
plugins = ["coverage_conditional_plugin"]
|
|
101
|
+
|
|
102
|
+
[tool.coverage.report]
|
|
103
|
+
exclude_lines = [
|
|
104
|
+
"pragma: no cover",
|
|
105
|
+
"def __repr__",
|
|
106
|
+
"def __str__",
|
|
107
|
+
'@(typing\.)?overload',
|
|
108
|
+
'if (typing\.)?TYPE_CHECKING( is True)?:',
|
|
109
|
+
'@(abc\.)?abstractmethod',
|
|
110
|
+
"raise NotImplementedError",
|
|
111
|
+
'warnings\.warn',
|
|
112
|
+
'^\.\.\.$',
|
|
113
|
+
"pass",
|
|
114
|
+
"if __name__ == .__main__.:",
|
|
115
|
+
]
|
|
116
|
+
|
|
117
|
+
[tool.coverage.coverage_conditional_plugin.rules]
|
|
118
|
+
pydantic-v2 = "package_version('pydantic') < (2,)"
|
|
119
|
+
pydantic-v1 = "package_version('pydantic') >= (2,)"
|
|
120
|
+
|
|
121
|
+
[tool.ruff]
|
|
122
|
+
line-length = 88
|
|
123
|
+
|
|
124
|
+
[tool.ruff.format]
|
|
125
|
+
line-ending = "lf"
|
|
126
|
+
|
|
127
|
+
[tool.ruff.lint]
|
|
128
|
+
select = [
|
|
129
|
+
"F",
|
|
130
|
+
"W",
|
|
131
|
+
"E",
|
|
132
|
+
"I",
|
|
133
|
+
"UP",
|
|
134
|
+
"ASYNC",
|
|
135
|
+
"C4",
|
|
136
|
+
"T10",
|
|
137
|
+
"T20",
|
|
138
|
+
"PYI",
|
|
139
|
+
"PT",
|
|
140
|
+
"Q",
|
|
141
|
+
"TID",
|
|
142
|
+
"RUF",
|
|
143
|
+
]
|
|
144
|
+
ignore = [
|
|
145
|
+
"E402",
|
|
146
|
+
"UP037",
|
|
147
|
+
"RUF001",
|
|
148
|
+
"RUF002",
|
|
149
|
+
"RUF003",
|
|
150
|
+
]
|
|
151
|
+
|
|
152
|
+
[tool.ruff.lint.per-file-ignores]
|
|
153
|
+
"packages/githubkit-schemas-**/**" = [
|
|
154
|
+
"E501",
|
|
155
|
+
"PYI016",
|
|
156
|
+
"TID",
|
|
157
|
+
"UP007",
|
|
158
|
+
]
|
|
159
|
+
"packages/githubkit-schemas/githubkit_schemas/latest/**" = [
|
|
160
|
+
"E501",
|
|
161
|
+
"PYI016",
|
|
162
|
+
"TID",
|
|
163
|
+
"UP007",
|
|
164
|
+
]
|
|
165
|
+
|
|
166
|
+
[tool.ruff.lint.isort]
|
|
167
|
+
force-sort-within-sections = true
|
|
168
|
+
extra-standard-library = ["typing_extensions"]
|
|
169
|
+
|
|
170
|
+
[tool.ruff.lint.flake8-pytest-style]
|
|
171
|
+
fixture-parentheses = false
|
|
172
|
+
mark-parentheses = false
|
|
173
|
+
|
|
174
|
+
[tool.ruff.lint.pyupgrade]
|
|
175
|
+
keep-runtime-typing = true
|
|
176
|
+
|
|
177
|
+
[tool.pyright]
|
|
178
|
+
typeCheckingMode = "standard"
|
|
179
|
+
reportPrivateImportUsage = false
|
|
180
|
+
reportShadowedImports = false
|
|
181
|
+
disableBytesTypePromotions = true
|
|
182
|
+
pythonPlatform = "All"
|
|
183
|
+
|
|
184
|
+
[tool.pyright.defineConstant]
|
|
185
|
+
PYDANTIC_V2 = true
|
|
186
|
+
|
|
187
|
+
[[tool.pyright.executionEnvironments]]
|
|
188
|
+
root = "packages/**/githubkit_schemas/"
|
|
189
|
+
pythonVersion = "3.10"
|
|
190
|
+
reportOverlappingOverload = false
|
|
191
|
+
|
|
192
|
+
[[tool.pyright.executionEnvironments]]
|
|
193
|
+
root = "codegen"
|
|
194
|
+
pythonVersion = "3.10"
|
|
195
|
+
|
|
196
|
+
[[tool.pyright.executionEnvironments]]
|
|
197
|
+
root = "."
|
|
198
|
+
pythonVersion = "3.10"
|
|
199
|
+
|
|
200
|
+
[tool.codegen]
|
|
201
|
+
schemas_output_dir = "packages/githubkit-schemas/githubkit_schemas/"
|
|
202
|
+
|
|
203
|
+
[[tool.codegen.descriptions]]
|
|
204
|
+
version = "2022-11-28"
|
|
205
|
+
identifier = "2022-11-28"
|
|
206
|
+
module = "v2022_11_28"
|
|
207
|
+
is_latest = false
|
|
208
|
+
source = "descriptions-next/api.github.com/api.github.com.2022-11-28.json"
|
|
209
|
+
output_dir = "packages/githubkit-schemas-2022-11-28/githubkit_schemas/"
|
|
210
|
+
|
|
211
|
+
[[tool.codegen.descriptions]]
|
|
212
|
+
version = "2022-11-28"
|
|
213
|
+
identifier = "ghec-2022-11-28"
|
|
214
|
+
module = "ghec_v2022_11_28"
|
|
215
|
+
is_latest = false
|
|
216
|
+
source = "descriptions-next/ghec/ghec.2022-11-28.json"
|
|
217
|
+
output_dir = "packages/githubkit-schemas-ghec-2022-11-28/githubkit_schemas/"
|
|
218
|
+
|
|
219
|
+
[[tool.codegen.descriptions]]
|
|
220
|
+
version = "2026-03-10"
|
|
221
|
+
identifier = "2026-03-10"
|
|
222
|
+
module = "v2026_03_10"
|
|
223
|
+
is_latest = true
|
|
224
|
+
source = "descriptions-next/api.github.com/api.github.com.2026-03-10.json"
|
|
225
|
+
output_dir = "packages/githubkit-schemas-2026-03-10/githubkit_schemas/"
|
|
226
|
+
|
|
227
|
+
[[tool.codegen.descriptions]]
|
|
228
|
+
version = "2026-03-10"
|
|
229
|
+
identifier = "ghec-2026-03-10"
|
|
230
|
+
module = "ghec_v2026_03_10"
|
|
231
|
+
is_latest = false
|
|
232
|
+
source = "descriptions-next/ghec/ghec.2026-03-10.json"
|
|
233
|
+
output_dir = "packages/githubkit-schemas-ghec-2026-03-10/githubkit_schemas/"
|
|
234
|
+
|
|
235
|
+
[[tool.codegen.overrides]]
|
|
236
|
+
|
|
237
|
+
[tool.codegen.overrides.field_overrides]
|
|
238
|
+
"+1" = "plus_one"
|
|
239
|
+
-1 = "minus_one"
|
|
240
|
+
|
|
241
|
+
[[tool.codegen.overrides]]
|
|
242
|
+
|
|
243
|
+
[tool.codegen.overrides.operation_overrides]
|
|
244
|
+
"pull-request-stacks/" = "pull-request-stacks/stacks-"
|
|
245
|
+
|
|
246
|
+
[[tool.codegen.overrides]]
|
|
247
|
+
target_descriptions = [
|
|
248
|
+
"ghec-2022-11-28",
|
|
249
|
+
"ghec-2026-03-10",
|
|
250
|
+
]
|
|
251
|
+
|
|
252
|
+
[tool.codegen.overrides.operation_overrides]
|
|
253
|
+
"enterprise-apps/" = "enterprise-apps/enterprise-"
|
|
254
|
+
|
|
255
|
+
[[tool.codegen.overrides]]
|
|
256
|
+
|
|
257
|
+
[tool.codegen.overrides.schema_overrides."/components/schemas/labeled-issue-event/properties/event"]
|
|
258
|
+
const = "labeled"
|
|
259
|
+
|
|
260
|
+
[tool.codegen.overrides.schema_overrides."/components/schemas/unlabeled-issue-event/properties/event"]
|
|
261
|
+
const = "unlabeled"
|
|
262
|
+
|
|
263
|
+
[tool.codegen.overrides.schema_overrides."/components/schemas/milestoned-issue-event/properties/event"]
|
|
264
|
+
const = "milestoned"
|
|
265
|
+
|
|
266
|
+
[tool.codegen.overrides.schema_overrides."/components/schemas/demilestoned-issue-event/properties/event"]
|
|
267
|
+
const = "demilestoned"
|
|
268
|
+
|
|
269
|
+
[tool.codegen.overrides.schema_overrides."/components/schemas/renamed-issue-event/properties/event"]
|
|
270
|
+
const = "renamed"
|
|
271
|
+
|
|
272
|
+
[tool.codegen.overrides.schema_overrides."/components/schemas/review-requested-issue-event/properties/event"]
|
|
273
|
+
const = "review_requested"
|
|
274
|
+
|
|
275
|
+
[tool.codegen.overrides.schema_overrides."/components/schemas/review-request-removed-issue-event/properties/event"]
|
|
276
|
+
const = "review_request_removed"
|
|
277
|
+
|
|
278
|
+
[tool.codegen.overrides.schema_overrides."/components/schemas/review-dismissed-issue-event/properties/event"]
|
|
279
|
+
const = "review_dismissed"
|
|
280
|
+
|
|
281
|
+
[tool.codegen.overrides.schema_overrides."/components/schemas/locked-issue-event/properties/event"]
|
|
282
|
+
const = "locked"
|
|
283
|
+
|
|
284
|
+
[tool.codegen.overrides.schema_overrides."/components/schemas/added-to-project-issue-event/properties/event"]
|
|
285
|
+
const = "added_to_project"
|
|
286
|
+
|
|
287
|
+
[tool.codegen.overrides.schema_overrides."/components/schemas/moved-column-in-project-issue-event/properties/event"]
|
|
288
|
+
const = "moved_columns_in_project"
|
|
289
|
+
|
|
290
|
+
[tool.codegen.overrides.schema_overrides."/components/schemas/removed-from-project-issue-event/properties/event"]
|
|
291
|
+
const = "removed_from_project"
|
|
292
|
+
|
|
293
|
+
[tool.codegen.overrides.schema_overrides."/components/schemas/converted-note-to-issue-issue-event/properties/event"]
|
|
294
|
+
const = "converted_note_to_issue"
|
|
295
|
+
|
|
296
|
+
[tool.codegen.overrides.schema_overrides."/components/schemas/timeline-comment-event/properties/event"]
|
|
297
|
+
const = "commented"
|
|
298
|
+
|
|
299
|
+
[tool.codegen.overrides.schema_overrides."/components/schemas/timeline-cross-referenced-event/properties/event"]
|
|
300
|
+
const = "cross-referenced"
|
|
301
|
+
|
|
302
|
+
[tool.codegen.overrides.schema_overrides."/components/schemas/timeline-committed-event/properties/event"]
|
|
303
|
+
const = "committed"
|
|
304
|
+
|
|
305
|
+
[tool.codegen.overrides.schema_overrides."/components/schemas/timeline-reviewed-event/properties/event"]
|
|
306
|
+
const = "reviewed"
|
|
307
|
+
|
|
308
|
+
[tool.codegen.overrides.schema_overrides."/components/schemas/timeline-line-commented-event/properties/event"]
|
|
309
|
+
const = "line_commented"
|
|
310
|
+
|
|
311
|
+
[tool.codegen.overrides.schema_overrides."/components/schemas/timeline-commit-commented-event/properties/event"]
|
|
312
|
+
const = "commit_commented"
|
|
313
|
+
|
|
314
|
+
[tool.codegen.overrides.schema_overrides."/components/schemas/timeline-assigned-issue-event/properties/event"]
|
|
315
|
+
const = "assigned"
|
|
316
|
+
|
|
317
|
+
[tool.codegen.overrides.schema_overrides."/components/schemas/timeline-unassigned-issue-event/properties/event"]
|
|
318
|
+
const = "unassigned"
|
|
319
|
+
|
|
320
|
+
[tool.codegen.overrides.schema_overrides."/components/schemas/issue/properties/body_text"]
|
|
321
|
+
type = [
|
|
322
|
+
"string",
|
|
323
|
+
"null",
|
|
324
|
+
]
|
|
325
|
+
|
|
326
|
+
[tool.codegen.overrides.schema_overrides."/components/schemas/issue/properties/body_html"]
|
|
327
|
+
type = [
|
|
328
|
+
"string",
|
|
329
|
+
"null",
|
|
330
|
+
]
|
|
331
|
+
|
|
332
|
+
[tool.codegen.overrides.schema_overrides."/components/schemas/timeline-reviewed-event/properties/body_text"]
|
|
333
|
+
type = [
|
|
334
|
+
"string",
|
|
335
|
+
"null",
|
|
336
|
+
]
|
|
337
|
+
|
|
338
|
+
[tool.codegen.overrides.schema_overrides."/components/schemas/timeline-reviewed-event/properties/body_html"]
|
|
339
|
+
type = [
|
|
340
|
+
"string",
|
|
341
|
+
"null",
|
|
342
|
+
]
|
|
343
|
+
|
|
344
|
+
[tool.codegen.overrides.schema_overrides."/components/schemas/release/properties/body_text"]
|
|
345
|
+
type = [
|
|
346
|
+
"string",
|
|
347
|
+
"null",
|
|
348
|
+
]
|
|
349
|
+
|
|
350
|
+
[tool.codegen.overrides.schema_overrides."/components/schemas/release/properties/body_html"]
|
|
351
|
+
type = [
|
|
352
|
+
"string",
|
|
353
|
+
"null",
|
|
354
|
+
]
|
|
355
|
+
|
|
356
|
+
[tool.codegen.overrides.schema_overrides."/components/schemas/issue/properties/state_reason/enum"]
|
|
357
|
+
"<add>" = ["duplicate"]
|
|
358
|
+
|
|
359
|
+
[tool.codegen.overrides.schema_overrides."/components/schemas/pull-request-simple/properties/head/properties/label"]
|
|
360
|
+
type = [
|
|
361
|
+
"string",
|
|
362
|
+
"null",
|
|
363
|
+
]
|
|
364
|
+
|
|
365
|
+
[tool.codegen.overrides.schema_overrides."/components/schemas/pull-request-simple/properties/head/properties/repo"]
|
|
366
|
+
"$ref" = "<unset>"
|
|
367
|
+
|
|
368
|
+
[[tool.codegen.overrides.schema_overrides."/components/schemas/pull-request-simple/properties/head/properties/repo".anyOf]]
|
|
369
|
+
type = "null"
|
|
370
|
+
|
|
371
|
+
[[tool.codegen.overrides.schema_overrides."/components/schemas/pull-request-simple/properties/head/properties/repo".anyOf]]
|
|
372
|
+
"$ref" = "#/components/schemas/repository"
|
|
373
|
+
|
|
374
|
+
[tool.codegen.overrides.schema_overrides."/components/schemas/pull-request/properties/head/properties/label"]
|
|
375
|
+
type = [
|
|
376
|
+
"string",
|
|
377
|
+
"null",
|
|
378
|
+
]
|
|
379
|
+
|
|
380
|
+
[tool.codegen.overrides.schema_overrides."/components/schemas/pull-request/properties/head/properties/user"]
|
|
381
|
+
"$ref" = "<unset>"
|
|
382
|
+
|
|
383
|
+
[[tool.codegen.overrides.schema_overrides."/components/schemas/pull-request/properties/head/properties/user".anyOf]]
|
|
384
|
+
type = "null"
|
|
385
|
+
|
|
386
|
+
[[tool.codegen.overrides.schema_overrides."/components/schemas/pull-request/properties/head/properties/user".anyOf]]
|
|
387
|
+
"$ref" = "#/components/schemas/simple-user"
|
|
388
|
+
|
|
389
|
+
[tool.codegen.overrides.schema_overrides."/components/schemas/pull-request/properties/head/properties/repo"]
|
|
390
|
+
"$ref" = "<unset>"
|
|
391
|
+
|
|
392
|
+
[[tool.codegen.overrides.schema_overrides."/components/schemas/pull-request/properties/head/properties/repo".anyOf]]
|
|
393
|
+
type = "null"
|
|
394
|
+
|
|
395
|
+
[[tool.codegen.overrides.schema_overrides."/components/schemas/pull-request/properties/head/properties/repo".anyOf]]
|
|
396
|
+
"$ref" = "#/components/schemas/repository"
|
|
397
|
+
|
|
398
|
+
[tool.codegen.overrides.schema_overrides."/components/schemas/pull-request-simple/properties/labels/items/properties/description"]
|
|
399
|
+
type = [
|
|
400
|
+
"string",
|
|
401
|
+
"null",
|
|
402
|
+
]
|
|
403
|
+
|
|
404
|
+
[tool.codegen.overrides.schema_overrides."/components/schemas/repository/properties/temp_clone_token"]
|
|
405
|
+
type = [
|
|
406
|
+
"string",
|
|
407
|
+
"null",
|
|
408
|
+
]
|
|
409
|
+
|
|
410
|
+
[tool.codegen.overrides.schema_overrides."/components/schemas/minimal-repository/properties/temp_clone_token"]
|
|
411
|
+
type = [
|
|
412
|
+
"string",
|
|
413
|
+
"null",
|
|
414
|
+
]
|
|
415
|
+
|
|
416
|
+
[tool.codegen.overrides.schema_overrides."/components/schemas/team-repository/properties/temp_clone_token"]
|
|
417
|
+
type = [
|
|
418
|
+
"string",
|
|
419
|
+
"null",
|
|
420
|
+
]
|
|
421
|
+
|
|
422
|
+
[tool.codegen.overrides.schema_overrides."/components/schemas/repo-search-result-item/properties/temp_clone_token"]
|
|
423
|
+
type = [
|
|
424
|
+
"string",
|
|
425
|
+
"null",
|
|
426
|
+
]
|
|
427
|
+
|
|
428
|
+
[tool.codegen.overrides.schema_overrides."/components/schemas/repository-webhooks/properties/temp_clone_token"]
|
|
429
|
+
type = [
|
|
430
|
+
"string",
|
|
431
|
+
"null",
|
|
432
|
+
]
|
|
433
|
+
|
|
434
|
+
[tool.codegen.overrides.schema_overrides."/components/schemas/repository-webhooks/properties/template_repository/properties/temp_clone_token"]
|
|
435
|
+
type = [
|
|
436
|
+
"string",
|
|
437
|
+
"null",
|
|
438
|
+
]
|
|
439
|
+
|
|
440
|
+
[tool.codegen.overrides.schema_overrides."/components/schemas/repository/properties/owner"]
|
|
441
|
+
"$ref" = "<unset>"
|
|
442
|
+
|
|
443
|
+
[[tool.codegen.overrides.schema_overrides."/components/schemas/repository/properties/owner".anyOf]]
|
|
444
|
+
type = "null"
|
|
445
|
+
|
|
446
|
+
[[tool.codegen.overrides.schema_overrides."/components/schemas/repository/properties/owner".anyOf]]
|
|
447
|
+
"$ref" = "#/components/schemas/simple-user"
|
|
448
|
+
|
|
449
|
+
[tool.codegen.overrides.schema_overrides."/components/schemas/repo-search-result-item/required"]
|
|
450
|
+
"<remove>" = ["has_downloads"]
|
|
451
|
+
|
|
452
|
+
[tool.codegen.overrides.schema_overrides."/components/schemas/auto-merge/properties/commit_title"]
|
|
453
|
+
type = [
|
|
454
|
+
"string",
|
|
455
|
+
"null",
|
|
456
|
+
]
|
|
457
|
+
|
|
458
|
+
[tool.codegen.overrides.schema_overrides."/components/schemas/auto-merge/properties/commit_message"]
|
|
459
|
+
type = [
|
|
460
|
+
"string",
|
|
461
|
+
"null",
|
|
462
|
+
]
|
|
463
|
+
|
|
464
|
+
[tool.codegen.overrides.schema_overrides."/paths/~1repos~1{owner}~1{repo}~1releases/post/requestBody/content/application~1json/schema/properties/make_latest"]
|
|
465
|
+
default = "true"
|
|
466
|
+
|
|
467
|
+
[tool.codegen.overrides.schema_overrides."/paths/~1repos~1{owner}~1{repo}~1releases~1{release_id}/patch/requestBody/content/application~1json/schema/properties/make_latest"]
|
|
468
|
+
default = "true"
|
|
469
|
+
|
|
470
|
+
[tool.codegen.overrides.schema_overrides."/components/schemas/organization-full/properties/company"]
|
|
471
|
+
type = [
|
|
472
|
+
"string",
|
|
473
|
+
"null",
|
|
474
|
+
]
|
|
475
|
+
|
|
476
|
+
[tool.codegen.overrides.schema_overrides."/components/schemas/organization-full/properties/email"]
|
|
477
|
+
type = [
|
|
478
|
+
"string",
|
|
479
|
+
"null",
|
|
480
|
+
]
|
|
481
|
+
|
|
482
|
+
[tool.codegen.overrides.schema_overrides."/components/schemas/organization-full/properties/location"]
|
|
483
|
+
type = [
|
|
484
|
+
"string",
|
|
485
|
+
"null",
|
|
486
|
+
]
|
|
487
|
+
|
|
488
|
+
[tool.codegen.overrides.schema_overrides."/components/schemas/organization-full/properties/name"]
|
|
489
|
+
type = [
|
|
490
|
+
"string",
|
|
491
|
+
"null",
|
|
492
|
+
]
|
|
493
|
+
|
|
494
|
+
[tool.codegen.overrides.schema_overrides."/components/schemas/organization-full/properties/blog"]
|
|
495
|
+
type = [
|
|
496
|
+
"string",
|
|
497
|
+
"null",
|
|
498
|
+
]
|
|
499
|
+
|
|
500
|
+
[tool.codegen.overrides.schema_overrides."/components/schemas/team-organization/properties/company"]
|
|
501
|
+
type = [
|
|
502
|
+
"string",
|
|
503
|
+
"null",
|
|
504
|
+
]
|
|
505
|
+
|
|
506
|
+
[tool.codegen.overrides.schema_overrides."/components/schemas/team-organization/properties/email"]
|
|
507
|
+
type = [
|
|
508
|
+
"string",
|
|
509
|
+
"null",
|
|
510
|
+
]
|
|
511
|
+
|
|
512
|
+
[tool.codegen.overrides.schema_overrides."/components/schemas/team-organization/properties/location"]
|
|
513
|
+
type = [
|
|
514
|
+
"string",
|
|
515
|
+
"null",
|
|
516
|
+
]
|
|
517
|
+
|
|
518
|
+
[tool.codegen.overrides.schema_overrides."/components/schemas/team-organization/properties/name"]
|
|
519
|
+
type = [
|
|
520
|
+
"string",
|
|
521
|
+
"null",
|
|
522
|
+
]
|
|
523
|
+
|
|
524
|
+
[tool.codegen.overrides.schema_overrides."/components/schemas/team-organization/properties/blog"]
|
|
525
|
+
type = [
|
|
526
|
+
"string",
|
|
527
|
+
"null",
|
|
528
|
+
]
|
|
529
|
+
|
|
530
|
+
[tool.codegen.overrides.schema_overrides."/components/schemas/pages-deployment-status/properties/status/enum"]
|
|
531
|
+
"<add>" = ["deployment_queued"]
|
|
532
|
+
|
|
533
|
+
[tool.codegen.overrides.schema_overrides."/paths/~1repos~1{owner}~1{repo}~1pages~1deployments/post/requestBody/content/application~1json/schema/properties/artifact_id/type"]
|
|
534
|
+
"<copy>" = "#/components/parameters/artifact-id/schema/type"
|
|
535
|
+
|
|
536
|
+
[tool.codegen.overrides.schema_overrides."/components/schemas/git-user/properties/date"]
|
|
537
|
+
format = "date-time"
|
|
538
|
+
|
|
539
|
+
[tool.codegen.overrides.schema_overrides."/components/schemas/verification/required"]
|
|
540
|
+
"<remove>" = ["verified_at"]
|
|
541
|
+
|
|
542
|
+
[tool.codegen.overrides.schema_overrides."/components/schemas/diff-entry/properties/blob_url"]
|
|
543
|
+
type = [
|
|
544
|
+
"string",
|
|
545
|
+
"null",
|
|
546
|
+
]
|
|
547
|
+
|
|
548
|
+
[tool.codegen.overrides.schema_overrides."/components/schemas/diff-entry/properties/raw_url"]
|
|
549
|
+
type = [
|
|
550
|
+
"string",
|
|
551
|
+
"null",
|
|
552
|
+
]
|
|
553
|
+
|
|
554
|
+
[tool.codegen.overrides.schema_overrides."/components/schemas/diff-entry/properties/sha"]
|
|
555
|
+
type = [
|
|
556
|
+
"string",
|
|
557
|
+
"null",
|
|
558
|
+
]
|
|
559
|
+
|
|
560
|
+
[tool.codegen.overrides.schema_overrides."/components/schemas/app-permissions/properties/organization_copilot_seat_management/enum"]
|
|
561
|
+
"<add>" = ["read"]
|
|
562
|
+
|
|
563
|
+
[tool.codegen.overrides.schema_overrides."/components/parameters/created/schema"]
|
|
564
|
+
format = "<unset>"
|
|
565
|
+
|
|
566
|
+
[tool.codegen.overrides.schema_overrides."/components/schemas/simple-classroom-assignment/properties/editor"]
|
|
567
|
+
type = [
|
|
568
|
+
"string",
|
|
569
|
+
"null",
|
|
570
|
+
]
|
|
571
|
+
|
|
572
|
+
[tool.codegen.overrides.schema_overrides."/components/schemas/simple-classroom-assignment/properties/language"]
|
|
573
|
+
type = [
|
|
574
|
+
"string",
|
|
575
|
+
"null",
|
|
576
|
+
]
|
|
577
|
+
|
|
578
|
+
[tool.codegen.overrides.schema_overrides."/components/schemas/simple-classroom-assignment/required"]
|
|
579
|
+
"<remove>" = ["submitted"]
|
|
580
|
+
|
|
581
|
+
[tool.codegen.overrides.schema_overrides."/paths/~1repos~1{owner}~1{repo}~1check-runs/post/requestBody/content/application~1json/schema"]
|
|
582
|
+
discriminator = "<unset>"
|
|
583
|
+
|
|
584
|
+
[tool.codegen.overrides.schema_overrides."/paths/~1repos~1{owner}~1{repo}~1check-runs/post/requestBody/content/application~1json/schema/oneOf/1/properties/status/enum"]
|
|
585
|
+
"<add>" = [
|
|
586
|
+
"waiting",
|
|
587
|
+
"requested",
|
|
588
|
+
"pending",
|
|
589
|
+
]
|
|
590
|
+
|
|
591
|
+
[tool.codegen.overrides.schema_overrides."/paths/~1repos~1{owner}~1{repo}~1contents~1{path}/get"]
|
|
592
|
+
requestBody = "<unset>"
|
|
593
|
+
|
|
594
|
+
[tool.codegen.overrides.schema_overrides."/paths/~1repos~1{owner}~1{repo}~1contents~1{path}/get/responses/200/content/application~1json/schema"]
|
|
595
|
+
discriminator = "<unset>"
|
|
596
|
+
|
|
597
|
+
[tool.codegen.overrides.schema_overrides."/paths/~1user/get/responses/200/content/application~1json/schema"]
|
|
598
|
+
discriminator = "<unset>"
|
|
599
|
+
|
|
600
|
+
[tool.codegen.overrides.schema_overrides."/paths/~1user~1{account_id}/get/responses/200/content/application~1json/schema"]
|
|
601
|
+
discriminator = "<unset>"
|
|
602
|
+
|
|
603
|
+
[tool.codegen.overrides.schema_overrides."/paths/~1users~1{username}/get/responses/200/content/application~1json/schema"]
|
|
604
|
+
discriminator = "<unset>"
|
|
605
|
+
|
|
606
|
+
[tool.codegen.overrides.schema_overrides."/components/schemas/webhook-check-run-completed/required"]
|
|
607
|
+
"<add>" = ["action"]
|
|
608
|
+
|
|
609
|
+
[tool.codegen.overrides.schema_overrides."/components/schemas/webhook-check-run-created/required"]
|
|
610
|
+
"<add>" = ["action"]
|
|
611
|
+
|
|
612
|
+
[tool.codegen.overrides.schema_overrides."/components/schemas/webhook-check-run-rerequested/required"]
|
|
613
|
+
"<add>" = ["action"]
|
|
614
|
+
|
|
615
|
+
[tool.codegen.overrides.schema_overrides."/components/schemas/webhooks_issue/properties/performed_via_github_app/properties/events/items"]
|
|
616
|
+
enum = "<unset>"
|
|
617
|
+
|
|
618
|
+
[tool.codegen.overrides.schema_overrides."/components/schemas/webhooks_issue_2/properties/performed_via_github_app/properties/events/items"]
|
|
619
|
+
enum = "<unset>"
|
|
620
|
+
|
|
621
|
+
[tool.codegen.overrides.schema_overrides."/components/schemas/webhook-check-suite-completed/properties/check_suite/properties/app/properties/events/items"]
|
|
622
|
+
enum = "<unset>"
|
|
623
|
+
|
|
624
|
+
[tool.codegen.overrides.schema_overrides."/components/schemas/webhook-check-suite-requested/properties/check_suite/properties/app/properties/events/items"]
|
|
625
|
+
enum = "<unset>"
|
|
626
|
+
|
|
627
|
+
[tool.codegen.overrides.schema_overrides."/components/schemas/webhook-check-suite-rerequested/properties/check_suite/properties/app/properties/events/items"]
|
|
628
|
+
enum = "<unset>"
|
|
629
|
+
|
|
630
|
+
[tool.codegen.overrides.schema_overrides."/components/schemas/webhook-deployment-created/properties/deployment/properties/performed_via_github_app/properties/events/items"]
|
|
631
|
+
enum = "<unset>"
|
|
632
|
+
|
|
633
|
+
[tool.codegen.overrides.schema_overrides."/components/schemas/webhook-deployment-status-created/properties/deployment/properties/performed_via_github_app/properties/events/items"]
|
|
634
|
+
enum = "<unset>"
|
|
635
|
+
|
|
636
|
+
[tool.codegen.overrides.schema_overrides."/components/schemas/webhook-deployment-status-created/properties/deployment_status/properties/performed_via_github_app/properties/events/items"]
|
|
637
|
+
enum = "<unset>"
|
|
638
|
+
|
|
639
|
+
[tool.codegen.overrides.schema_overrides."/components/schemas/webhook-issue-comment-created/properties/issue/allOf/0/properties/performed_via_github_app/properties/events/items"]
|
|
640
|
+
enum = "<unset>"
|
|
641
|
+
|
|
642
|
+
[tool.codegen.overrides.schema_overrides."/components/schemas/webhook-issue-comment-deleted/properties/issue/allOf/0/properties/performed_via_github_app/properties/events/items"]
|
|
643
|
+
enum = "<unset>"
|
|
644
|
+
|
|
645
|
+
[tool.codegen.overrides.schema_overrides."/components/schemas/webhook-issue-comment-edited/properties/issue/allOf/0/properties/performed_via_github_app/properties/events/items"]
|
|
646
|
+
enum = "<unset>"
|
|
647
|
+
|
|
648
|
+
[tool.codegen.overrides.schema_overrides."/components/schemas/webhook-issues-closed/properties/issue/allOf/0/properties/performed_via_github_app/properties/events/items"]
|
|
649
|
+
enum = "<unset>"
|
|
650
|
+
|
|
651
|
+
[tool.codegen.overrides.schema_overrides."/components/schemas/webhook-issues-deleted/properties/issue/properties/performed_via_github_app/properties/events/items"]
|
|
652
|
+
enum = "<unset>"
|
|
653
|
+
|
|
654
|
+
[tool.codegen.overrides.schema_overrides."/components/schemas/webhook-issues-demilestoned/properties/issue/properties/performed_via_github_app/properties/events/items"]
|
|
655
|
+
enum = "<unset>"
|
|
656
|
+
|
|
657
|
+
[tool.codegen.overrides.schema_overrides."/components/schemas/webhook-issues-edited/properties/issue/properties/performed_via_github_app/properties/events/items"]
|
|
658
|
+
enum = "<unset>"
|
|
659
|
+
|
|
660
|
+
[tool.codegen.overrides.schema_overrides."/components/schemas/webhook-issues-labeled/properties/issue/properties/performed_via_github_app/properties/events/items"]
|
|
661
|
+
enum = "<unset>"
|
|
662
|
+
|
|
663
|
+
[tool.codegen.overrides.schema_overrides."/components/schemas/webhook-issues-locked/properties/issue/properties/performed_via_github_app/properties/events/items"]
|
|
664
|
+
enum = "<unset>"
|
|
665
|
+
|
|
666
|
+
[tool.codegen.overrides.schema_overrides."/components/schemas/webhook-issues-milestoned/properties/issue/properties/performed_via_github_app/properties/events/items"]
|
|
667
|
+
enum = "<unset>"
|
|
668
|
+
|
|
669
|
+
[tool.codegen.overrides.schema_overrides."/components/schemas/webhook-issues-opened/properties/changes/properties/old_issue/properties/performed_via_github_app/properties/events/items"]
|
|
670
|
+
enum = "<unset>"
|
|
671
|
+
|
|
672
|
+
[tool.codegen.overrides.schema_overrides."/components/schemas/webhook-issues-opened/properties/issue/properties/performed_via_github_app/properties/events/items"]
|
|
673
|
+
enum = "<unset>"
|
|
674
|
+
|
|
675
|
+
[tool.codegen.overrides.schema_overrides."/components/schemas/webhook-issues-reopened/properties/issue/properties/performed_via_github_app/properties/events/items"]
|
|
676
|
+
enum = "<unset>"
|
|
677
|
+
|
|
678
|
+
[tool.codegen.overrides.schema_overrides."/components/schemas/webhook-issues-transferred/properties/changes/properties/new_issue/properties/performed_via_github_app/properties/events/items"]
|
|
679
|
+
enum = "<unset>"
|
|
680
|
+
|
|
681
|
+
[tool.codegen.overrides.schema_overrides."/components/schemas/webhook-issues-unlocked/properties/issue/properties/performed_via_github_app/properties/events/items"]
|
|
682
|
+
enum = "<unset>"
|
|
683
|
+
|
|
684
|
+
[tool.codegen.overrides.schema_overrides."/components/schemas/webhook-meta-deleted/properties/hook/properties/events/items"]
|
|
685
|
+
enum = "<unset>"
|
|
686
|
+
|
|
687
|
+
[[tool.codegen.overrides.schema_overrides."/components/schemas/webhook-deployment-status-created/properties/deployment/properties/payload".oneOf]]
|
|
688
|
+
type = "string"
|
|
689
|
+
|
|
690
|
+
[[tool.codegen.overrides.schema_overrides."/components/schemas/webhook-deployment-status-created/properties/deployment/properties/payload".oneOf]]
|
|
691
|
+
type = "object"
|
|
692
|
+
additionalProperties = true
|
|
693
|
+
|
|
694
|
+
[[tool.codegen.overrides.schema_overrides."/components/schemas/webhook-deployment-created/properties/deployment/properties/payload".oneOf]]
|
|
695
|
+
type = "string"
|
|
696
|
+
|
|
697
|
+
[[tool.codegen.overrides.schema_overrides."/components/schemas/webhook-deployment-created/properties/deployment/properties/payload".oneOf]]
|
|
698
|
+
type = "object"
|
|
699
|
+
additionalProperties = true
|
|
700
|
+
|
|
701
|
+
[tool.codegen.overrides.schema_overrides."/components/schemas/webhook-deployment-protection-rule-requested"]
|
|
702
|
+
required = ["action"]
|
|
703
|
+
|
|
704
|
+
[tool.codegen.overrides.schema_overrides."/components/schemas/webhook-secret-scanning-alert-location-created/required"]
|
|
705
|
+
"<add>" = ["action"]
|
|
706
|
+
|
|
707
|
+
[tool.codegen.overrides.schema_overrides."/components/schemas/webhook-fork/properties/forkee/allOf/1/properties/topics/items"]
|
|
708
|
+
type = [
|
|
709
|
+
"string",
|
|
710
|
+
"null",
|
|
711
|
+
]
|
|
712
|
+
|
|
713
|
+
[tool.codegen.overrides.schema_overrides."/components/schemas/webhook-project-card-moved/properties/project_card/allOf/1/properties/after_id"]
|
|
714
|
+
type = [
|
|
715
|
+
"integer",
|
|
716
|
+
"null",
|
|
717
|
+
]
|
|
718
|
+
|
|
719
|
+
[tool.codegen.overrides.schema_overrides."/components/schemas/webhook-workflow-job-completed/properties/workflow_job/allOf/0/properties/run_id"]
|
|
720
|
+
type = "integer"
|
|
721
|
+
|
|
722
|
+
[tool.codegen.overrides.schema_overrides."/components/schemas/webhook-workflow-job-in-progress/properties/workflow_job/allOf/0/properties/run_id"]
|
|
723
|
+
type = "integer"
|
|
724
|
+
|
|
725
|
+
[tool.codegen.overrides.schema_overrides."/components/schemas/webhook-workflow-job-queued/properties/workflow_job/properties/run_id"]
|
|
726
|
+
type = "integer"
|
|
727
|
+
|
|
728
|
+
[tool.codegen.overrides.schema_overrides."/components/schemas/webhook-workflow-job-waiting/properties/workflow_job/properties/run_id"]
|
|
729
|
+
type = "integer"
|
|
730
|
+
|
|
731
|
+
[tool.codegen.overrides.schema_overrides."/components/schemas/webhook-workflow-job-completed/properties/workflow_job/allOf/1/properties/runner_id"]
|
|
732
|
+
type = [
|
|
733
|
+
"integer",
|
|
734
|
+
"null",
|
|
735
|
+
]
|
|
736
|
+
|
|
737
|
+
[tool.codegen.overrides.schema_overrides."/components/schemas/webhook-workflow-job-in-progress/properties/workflow_job/allOf/1/properties/runner_id"]
|
|
738
|
+
type = [
|
|
739
|
+
"integer",
|
|
740
|
+
"null",
|
|
741
|
+
]
|
|
742
|
+
|
|
743
|
+
[tool.codegen.overrides.schema_overrides."/components/schemas/webhook-workflow-job-completed/properties/workflow_job/allOf/1/properties/runner_group_id"]
|
|
744
|
+
type = [
|
|
745
|
+
"integer",
|
|
746
|
+
"null",
|
|
747
|
+
]
|
|
748
|
+
|
|
749
|
+
[tool.codegen.overrides.schema_overrides."/components/schemas/webhook-workflow-job-in-progress/properties/workflow_job/allOf/1/properties/runner_group_id"]
|
|
750
|
+
type = [
|
|
751
|
+
"integer",
|
|
752
|
+
"null",
|
|
753
|
+
]
|
|
754
|
+
|
|
755
|
+
[tool.codegen.overrides.schema_overrides."/components/schemas/webhook-workflow-run-completed/properties/workflow_run/properties/pull_requests/items/properties/id"]
|
|
756
|
+
type = "integer"
|
|
757
|
+
|
|
758
|
+
[tool.codegen.overrides.schema_overrides."/components/schemas/webhook-workflow-run-completed/properties/workflow_run/properties/pull_requests/items/properties/number"]
|
|
759
|
+
type = "integer"
|
|
760
|
+
|
|
761
|
+
[tool.codegen.overrides.schema_overrides."/components/schemas/webhook-workflow-run-in-progress/properties/workflow_run/properties/pull_requests/items/properties/id"]
|
|
762
|
+
type = "integer"
|
|
763
|
+
|
|
764
|
+
[tool.codegen.overrides.schema_overrides."/components/schemas/webhook-workflow-run-in-progress/properties/workflow_run/properties/pull_requests/items/properties/number"]
|
|
765
|
+
type = "integer"
|
|
766
|
+
|
|
767
|
+
[tool.codegen.overrides.schema_overrides."/components/schemas/webhook-workflow-run-requested/properties/workflow_run/properties/pull_requests/items/properties/id"]
|
|
768
|
+
type = "integer"
|
|
769
|
+
|
|
770
|
+
[tool.codegen.overrides.schema_overrides."/components/schemas/webhook-workflow-run-requested/properties/workflow_run/properties/pull_requests/items/properties/number"]
|
|
771
|
+
type = "integer"
|
|
772
|
+
|
|
773
|
+
[tool.codegen.overrides.schema_overrides."/components/schemas/webhook-code-scanning-alert-fixed/properties/alert/properties/fixed_at"]
|
|
774
|
+
type = [
|
|
775
|
+
"string",
|
|
776
|
+
"null",
|
|
777
|
+
]
|
|
778
|
+
format = "date-time"
|
|
779
|
+
|
|
780
|
+
[tool.codegen.overrides.schema_overrides."/components/schemas/webhook-code-scanning-alert-fixed/properties/alert/properties/state/enum"]
|
|
781
|
+
"<add>" = ["dismissed"]
|
|
782
|
+
|
|
783
|
+
[tool.codegen.overrides.schema_overrides."/components/schemas/webhook-code-scanning-alert-closed-by-user/properties/alert/properties/fixed_at"]
|
|
784
|
+
type = [
|
|
785
|
+
"string",
|
|
786
|
+
"null",
|
|
787
|
+
]
|
|
788
|
+
format = "date-time"
|
|
789
|
+
|
|
790
|
+
[tool.codegen.overrides.schema_overrides."/components/schemas/webhook-code-scanning-alert-appeared-in-branch/properties/alert/properties/fixed_at"]
|
|
791
|
+
type = [
|
|
792
|
+
"string",
|
|
793
|
+
"null",
|
|
794
|
+
]
|
|
795
|
+
format = "date-time"
|
|
796
|
+
|
|
797
|
+
[tool.codegen.overrides.schema_overrides."/components/schemas/webhook-code-scanning-alert-reopened/properties/alert/properties/fixed_at"]
|
|
798
|
+
type = [
|
|
799
|
+
"string",
|
|
800
|
+
"null",
|
|
801
|
+
]
|
|
802
|
+
format = "date-time"
|
|
803
|
+
|
|
804
|
+
[tool.codegen.overrides.schema_overrides."/components/schemas/webhook-code-scanning-alert-reopened-by-user/properties/alert/properties/fixed_at"]
|
|
805
|
+
type = [
|
|
806
|
+
"string",
|
|
807
|
+
"null",
|
|
808
|
+
]
|
|
809
|
+
format = "date-time"
|
|
810
|
+
|
|
811
|
+
[tool.codegen.overrides.schema_overrides."/components/schemas/webhook-code-scanning-alert-updated-assignment/properties/alert/properties/fixed_at"]
|
|
812
|
+
type = [
|
|
813
|
+
"string",
|
|
814
|
+
"null",
|
|
815
|
+
]
|
|
816
|
+
format = "date-time"
|
|
817
|
+
|
|
818
|
+
[tool.codegen.overrides.schema_overrides."/components/schemas/webhook-code-scanning-alert-reopened/properties/alert/properties/dismissed_by"]
|
|
819
|
+
"<copy>" = "#/components/schemas/webhook-code-scanning-alert-appeared-in-branch/properties/alert/properties/dismissed_by"
|
|
820
|
+
|
|
821
|
+
[tool.codegen.overrides.schema_overrides."/webhooks/repository-dispatch-sample.collected/post"]
|
|
822
|
+
operationId = "repository-dispatch"
|
|
823
|
+
|
|
824
|
+
[tool.codegen.overrides.schema_overrides."/components/schemas/webhooks_answer/properties/parent_id"]
|
|
825
|
+
type = [
|
|
826
|
+
"integer",
|
|
827
|
+
"null",
|
|
828
|
+
]
|
|
829
|
+
|
|
830
|
+
[tool.codegen.overrides.schema_overrides."/components/schemas/dependabot-alert-with-repository/properties/dependency/properties/relationship/enum"]
|
|
831
|
+
"<add>" = ["inconclusive"]
|
|
832
|
+
|
|
833
|
+
[tool.codegen.overrides.schema_overrides."/components/schemas/dependabot-alert/properties/dependency/properties/relationship/enum"]
|
|
834
|
+
"<add>" = ["inconclusive"]
|
|
835
|
+
|
|
836
|
+
[tool.codegen.overrides.schema_overrides."/components/schemas/code-scanning-alert-classification/enum"]
|
|
837
|
+
"<add>" = ["documentation"]
|
|
838
|
+
|
|
839
|
+
[build-system]
|
|
840
|
+
requires = ["uv_build >=0.8.3, <0.12.0"]
|
|
841
|
+
build-backend = "uv_build"
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
[project]
|
|
2
2
|
name = "GitHubKit"
|
|
3
|
-
version = "0.16.
|
|
3
|
+
version = "0.16.1"
|
|
4
4
|
description = "GitHub SDK for Python"
|
|
5
5
|
authors = [{ name = "yanyongyu", email = "yyy@yyydl.top" }]
|
|
6
6
|
license = "MIT"
|
|
@@ -37,7 +37,7 @@ dev = [
|
|
|
37
37
|
{ include-group = "codegen" },
|
|
38
38
|
{ include-group = "test" },
|
|
39
39
|
{ include-group = "docs" },
|
|
40
|
-
"ruff >=0.
|
|
40
|
+
"ruff >=0.16.0, <0.17.0",
|
|
41
41
|
"nonemoji >=0.1.2, <0.2.0",
|
|
42
42
|
"pre-commit >=4.0.0, <5.0.0",
|
|
43
43
|
]
|
|
@@ -218,6 +218,20 @@ output_dir = "packages/githubkit-schemas-ghec-2026-03-10/githubkit_schemas/"
|
|
|
218
218
|
|
|
219
219
|
[[tool.codegen.overrides]]
|
|
220
220
|
|
|
221
|
+
[tool.codegen.overrides.operation_overrides]
|
|
222
|
+
# duplicate operation name for pull request stacks
|
|
223
|
+
"pull-request-stacks/" = "pull-request-stacks/stacks-"
|
|
224
|
+
|
|
225
|
+
[[tool.codegen.overrides]]
|
|
226
|
+
# override invalid schemas for ghec
|
|
227
|
+
target_descriptions = ["ghec-2022-11-28", "ghec-2026-03-10"]
|
|
228
|
+
|
|
229
|
+
[tool.codegen.overrides.operation_overrides]
|
|
230
|
+
# duplicate operation name for enterprise apps
|
|
231
|
+
"enterprise-apps/" = "enterprise-apps/enterprise-"
|
|
232
|
+
|
|
233
|
+
[[tool.codegen.overrides]]
|
|
234
|
+
|
|
221
235
|
[tool.codegen.overrides.schema_overrides]
|
|
222
236
|
# enhancement: issue timeline discriminator
|
|
223
237
|
"/components/schemas/labeled-issue-event/properties/event" = { const = "labeled" }
|
|
@@ -657,11 +671,3 @@ output_dir = "packages/githubkit-schemas-ghec-2026-03-10/githubkit_schemas/"
|
|
|
657
671
|
"/components/schemas/code-scanning-alert-classification/enum" = { "<add>" = [
|
|
658
672
|
"documentation",
|
|
659
673
|
] }
|
|
660
|
-
|
|
661
|
-
[[tool.codegen.overrides]]
|
|
662
|
-
# override invalid schemas for ghec-2022-11-28
|
|
663
|
-
target_descriptions = ["ghec-2022-11-28", "ghec-2026-03-10"]
|
|
664
|
-
|
|
665
|
-
[tool.codegen.overrides.schema_overrides]
|
|
666
|
-
# duplicate operation name for enterprise apps
|
|
667
|
-
"/paths/~1enterprises~1{enterprise}~1apps~1organizations~1{org}~1installations~1{installation_id}/delete" = { operationId = "enterprise-apps/enterprise-delete-installation" }
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|