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'