backport
Version:
A CLI tool that automates the process of backporting commits
14 lines (13 loc) • 815 B
TypeScript
import type { ValidConfigOptions } from '../../options/options.js';
export declare function getRemoteUrl({ repoName, githubToken, gitHostname }: ValidConfigOptions, repoOwner: string): string;
export declare function deleteRemote(options: ValidConfigOptions, remoteName: string): Promise<void>;
export declare function addRemote(options: ValidConfigOptions, remoteName: string): Promise<void>;
export declare function getRepoInfoFromGitRemotes({ cwd }: {
cwd: string;
}): Promise<{
repoOwner: string;
repoName: string;
}[]>;
export declare function getRepoForkOwner(options: ValidConfigOptions): string;
export declare function getGitProjectRootPath(workdir: string): Promise<string | undefined>;
export declare function getLocalSourceRepoPath(options: ValidConfigOptions): Promise<string | undefined>;