UNPKG

@altostra/core

Version:

Core library for shared types and logic

20 lines (19 loc) 971 B
import type { NonEmptyString } from "../../../common/CustomTypes/NonEmptyString"; import type { Name } from "../../../common/Models/Name"; import type { GitUtils, RemoteURLType } from "../common"; export interface GitLabGitUtilsParams { groupName: Name; } export declare class GitLabGitUtils implements GitUtils { #private; constructor({ groupName, }: GitLabGitUtilsParams); 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; }