backport
Version:
A CLI tool that automates the process of backporting commits
68 lines (67 loc) • 2.7 kB
TypeScript
import type { ConfigFileOptions } from './config-options.js';
export type OptionsFromCliArgs = ReturnType<typeof getOptionsFromCliArgs>;
export declare function getOptionsFromCliArgs(processArgs: readonly string[]): {
repoOwner?: string | undefined;
repoName?: string | undefined;
author?: string | null | undefined;
sha?: string | undefined;
since?: string | undefined;
until?: string | undefined;
maxCount?: number | undefined;
sourceBranch?: string | undefined;
verbose?: boolean | undefined;
logFilePath?: string | undefined;
interactive?: boolean | undefined;
githubToken?: string | undefined;
assignees?: string[] | undefined;
autoAssign?: boolean | undefined;
autoMerge?: boolean | undefined;
autoMergeMethod?: string | undefined;
backportBranchName?: string | undefined;
cherryPickRef?: boolean | undefined;
conflictResolution?: string | undefined;
commitPaths?: string[] | undefined;
copySourcePRLabels?: boolean | undefined;
copySourcePRReviewers?: boolean | undefined;
cwd?: string | undefined;
workdir?: string | undefined;
draft?: boolean | undefined;
dryRun?: boolean | undefined;
editor?: string | undefined;
fork?: boolean | undefined;
gitAuthorEmail?: string | undefined;
gitAuthorName?: string | undefined;
gitHostname?: string | undefined;
githubApiBaseUrlV3?: string | undefined;
githubApiBaseUrlV4?: string | undefined;
globalConfigFile?: string | undefined;
mainline?: number | undefined;
ls?: boolean | undefined;
multipleBranches?: boolean | undefined;
multipleCommits?: boolean | undefined;
noVerify?: boolean | undefined;
noUnmergedBackportsHelp?: boolean | undefined;
onlyMissing?: boolean | undefined;
prDescription?: string | undefined;
prQuery?: string | undefined;
prTitle?: string | undefined;
projectConfigFile?: string | undefined;
publishStatusCommentOnAbort?: boolean | undefined;
publishStatusCommentOnFailure?: boolean | undefined;
publishStatusCommentOnSuccess?: boolean | undefined;
pullNumber?: number | undefined;
repoForkOwner?: string | undefined;
resetAuthor?: boolean | undefined;
reviewers?: string[] | undefined;
signoff?: boolean | undefined;
skipRemoteConfig?: boolean | undefined;
sourcePRLabels?: string[] | undefined;
targetBranchChoices?: string[] | undefined;
targetBranches?: string[] | undefined;
targetPRLabels?: string[] | undefined;
};
export declare function getRuntimeArguments(processArgs: string[], optionsFromModule?: ConfigFileOptions): {
interactive: boolean;
logFilePath: any;
ls: any;
};