From 20cfde5ea390fcb2a3be605be19ac62a037ed544 Mon Sep 17 00:00:00 2001 From: Laura Liberda Date: Sat, 20 Feb 2021 04:11:47 +0100 Subject: [PATCH] Revert "[gitlab] simplify gql schema download" This reverts commit 40ced41cce1769bfef1d0e81f2abe76c3df3dca2. GitLab removed the SDL files from the docs: https://gitlab.com/gitlab-org/gitlab/-/commit/baedeb4ee88746abc8c26d3145da01496b1ab497 --- scripts/download-gql-schema.ts | 6 +----- src/vendor/gitlab/codegen.toml | 2 +- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/scripts/download-gql-schema.ts b/scripts/download-gql-schema.ts index eb49894..89d329c 100644 --- a/scripts/download-gql-schema.ts +++ b/scripts/download-gql-schema.ts @@ -29,11 +29,7 @@ const schemas: [ [string | URL, GotOptions & { isStream?: true | undefined }], ][] = [ ['github', 'graphql', ['https://docs.github.com/public/schema.docs.graphql', {}]], - [ - 'gitlab', - 'graphql', - ['https://docs.gitlab.com/ee/api/graphql/reference/gitlab_schema.graphql', {}], - ], + ['gitlab', 'json', ['https://gitlab.com/api/graphql', introspection]], ]; Promise.all( diff --git a/src/vendor/gitlab/codegen.toml b/src/vendor/gitlab/codegen.toml index 70e6ff0..c3df13c 100644 --- a/src/vendor/gitlab/codegen.toml +++ b/src/vendor/gitlab/codegen.toml @@ -1,5 +1,5 @@ overwrite = true -schema= 'src/vendor/gitlab/schema.graphql' +schema= 'src/vendor/gitlab/schema.json' [config] typesPrefix = 'GL'