UNPKG

wgc

Version:

The official CLI tool to manage the GraphQL Federation Platform Cosmo

18 lines (17 loc) 660 B
import { PartialMessage } from '@bufbuild/protobuf'; import { GitInfo } from '@wundergraph/cosmo-connect/dist/platform/v1/platform_pb'; import { Client } from './core/client/client.js'; export declare function useGitHub(): { isPr: boolean; commit: string | undefined; build: string | undefined; branch: string | undefined; repository: string | undefined; accountId: string | undefined; repositoryId: string | undefined; root: string | undefined; }; export declare const verifyGitHubIntegration: (client: Client) => Promise<{ gitInfo: PartialMessage<GitInfo> | undefined; ignoreErrorsDueToGitHubIntegration: boolean; }>;