UNPKG

@altostra/core

Version:

Core library for shared types and logic

20 lines (19 loc) 975 B
import type { NonEmptyString } from "../../../common/CustomTypes/NonEmptyString"; import type { Name } from "../../../common/Models/Name"; import type { GitUtils, RemoteURLType } from "../common"; export interface GitHubGitUtilsParams { accountName: Name; } export declare class GitHubGitUtils implements GitUtils { #private; constructor({ accountName, }: GitHubGitUtilsParams); getAccountName(): string; isHostedRepository(repositoryUrl: string): boolean; getAccountURL(): NonEmptyString; getRepositoryBrowserUrl(repository: string): NonEmptyString; getFileBrowserUrl(repository: string, branch: string, file: string): NonEmptyString; getPullRequestsBrowserUrl(repository: string): NonEmptyString; getRepositoryCloneUrl(repository: string, remoteURLType: RemoteURLType): NonEmptyString; getRepositoryNameFromBrowserUrl(repositoryUrl: string): NonEmptyString; getRepositoryNameFromUrl(repositoryUrl: string): NonEmptyString; }