From 7546a6c8c1cb7871ba0184b62f17e0096241c788 Mon Sep 17 00:00:00 2001 From: Ju4tCode <42488585+yanyongyu@users.noreply.github.com> Date: Fri, 13 Mar 2026 02:47:56 +0000 Subject: [PATCH] :sparkles: support new rest api version 2026-03-10 --- pyproject.toml | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 39e8f2a4c..fc721ca6b 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -170,7 +170,7 @@ legacy_rest_models = "githubkit/rest/__init__.py" version = "2022-11-28" identifier = "2022-11-28" module = "v2022_11_28" -is_latest = true +is_latest = false source = "descriptions-next/api.github.com/api.github.com.2022-11-28.json" [[tool.codegen.descriptions]] @@ -180,6 +180,20 @@ module = "ghec_v2022_11_28" is_latest = false source = "descriptions-next/ghec/ghec.2022-11-28.json" +[[tool.codegen.descriptions]] +version = "2026-03-10" +identifier = "2026-03-10" +module = "v2026_03_10" +is_latest = true +source = "descriptions-next/api.github.com/api.github.com.2026-03-10.json" + +[[tool.codegen.descriptions]] +version = "2026-03-10" +identifier = "ghec-2026-03-10" +module = "ghec_v2026_03_10" +is_latest = false +source = "descriptions-next/ghec/ghec.2026-03-10.json" + [[tool.codegen.overrides]] [tool.codegen.overrides.field_overrides] @@ -608,7 +622,7 @@ source = "descriptions-next/ghec/ghec.2022-11-28.json" [[tool.codegen.overrides]] # override invalid schemas for ghec-2022-11-28 -target_descriptions = ["ghec-2022-11-28"] +target_descriptions = ["ghec-2022-11-28", "ghec-2026-03-10"] [tool.codegen.overrides.schema_overrides] # duplicate operation name for enterprise apps