From 3262fd59fca5b3b9ded26a8bf6c09f91cd755601 Mon Sep 17 00:00:00 2001 From: Alice Purcell Date: Sat, 7 Nov 2026 16:56:51 +0000 Subject: [PATCH] Skip client-side GraphQL query validation aiographql-client validates each query against the introspected schema. graphql-core 3.2.8 now rejects GitHub's schema ("Interface field Node.id is not deprecated, so implementation field ProjectCard.id must not be deprecated"), so every query to github.com fails before it is sent. Pass validate=False. GitHub still validates queries on the server, and this also saves one introspection request per domain. --- git_sync/github.py | 1 + pyproject.toml | 2 +- tests/test_github.py | 2 ++ 3 files changed, 4 insertions(+), 1 deletion(-) diff --git a/git_sync/github.py b/git_sync/github.py index 4c75766..504b20d 100644 --- a/git_sync/github.py +++ b/git_sync/github.py @@ -281,6 +281,7 @@ async def fetch_pull_requests_from_domain( endpoint=endpoint, headers={"Authorization": f"Bearer {token}"}, session=session, + validate=False, ) queries = [pr_query(repo.owner, repo.name) for repo in repos] diff --git a/pyproject.toml b/pyproject.toml index f0ba247..9090cd3 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "git-sync" -version = "0.8.1" +version = "0.8.2" description = "Synchronize local git repo with remotes" authors = [{ name = "Alice Purcell", email = "alicederyn@gmail.com" }] requires-python = ">= 3.12" diff --git a/tests/test_github.py b/tests/test_github.py index 6a990bf..2f4551a 100644 --- a/tests/test_github.py +++ b/tests/test_github.py @@ -196,6 +196,7 @@ async def test_public_github_endpoint( endpoint="https://api.github.com/graphql", headers={"Authorization": "Bearer test-token"}, session=client_session, + validate=False, ) @@ -211,6 +212,7 @@ async def test_github_enterprise_endpoint( endpoint="https://github.example.com/api/graphql", headers={"Authorization": "Bearer test-token"}, session=client_session, + validate=False, )