@altostra/core
Version:
Core library for shared types and logic
19 lines (18 loc) • 979 B
TypeScript
import type { NonEmptyString } from "../../../common/CustomTypes/NonEmptyString";
import type { GitUtils, RemoteURLType } from "../common";
import type { BitbucketAccount } from "./common";
export interface BitbucketGitUtilsParams extends BitbucketAccount {
}
export declare class BitbucketGitUtils implements GitUtils {
#private;
constructor({ userAccount, }: BitbucketGitUtilsParams);
getAccountName(): string;
isHostedRepository(repositoryUrl: string): boolean;
getAccountURL(): NonEmptyString;
getRepositoryBrowserUrl(repository: string): NonEmptyString;
getFileBrowserUrl(repository: string, branch: string, file: string): NonEmptyString;
getRepositoryCloneUrl(repository: string, remoteURLType: RemoteURLType): NonEmptyString;
getPullRequestsBrowserUrl(repository: string): NonEmptyString;
getRepositoryNameFromBrowserUrl(repositoryUrl: string): NonEmptyString;
getRepositoryNameFromUrl(repositoryUrl: string): NonEmptyString;
}