MCPcopy Create free account
hub / github.com/sourcebot-dev/sourcebot / BitbucketClient

Interface BitbucketClient

packages/backend/src/bitbucket.ts:26–36  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

24export type BitbucketRepository = CloudRepository | ServerRepository;
25
26interface BitbucketClient {
27 deploymentType: string;
28 token: string | undefined;
29 apiClient: any;
30 baseUrl: string;
31 gitUrl: string;
32 getReposForWorkspace: (client: BitbucketClient, workspaces: string[]) => Promise<{repos: BitbucketRepository[], warnings: string[]}>;
33 getReposForProjects: (client: BitbucketClient, projects: string[]) => Promise<{repos: BitbucketRepository[], warnings: string[]}>;
34 getRepos: (client: BitbucketClient, repos: string[]) => Promise<{repos: BitbucketRepository[], warnings: string[]}>;
35 shouldExcludeRepo: (repo: BitbucketRepository, config: BitbucketConnectionConfig) => boolean;
36}
37
38type CloudAPI = ReturnType<typeof createBitbucketCloudClientBase>;
39type CloudGetRequestPath = ClientPathsWithMethod<CloudAPI, "get">;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected