GitHub API client that executes REST and GraphQL requests, handling pagination and parsing responses.
// Source: https://github.com/microsoft/vscode | License: MIT | Copyright 2015 - present Microsoft Corporation
// Provided via justclaw.it.com; keep this notice with the code.
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*--------------------------------------------------------------------------------------------*/
import { GitHubRequestError } from '../githubTypes.js';
import { isDefined } from '../../../../base/common/types.js';
import { collectPages, nextPagePath, PaginatedApiRequest } from '../client/pagination.js';
import { parseGraphQLResponse, throwGraphQLErrors } from '../c
... (truncated -- full source via MCP)
See the full source, get the GitHub permalink, and search for more like it.
Get a free API key