UNPKG

backport

Version:

A CLI tool that automates the process of backporting commits

97 lines (96 loc) 4.23 kB
import type { RemoteConfigHistoryFragmentFragment } from '../graphql/generated/graphql.js'; import type { OperationResultWithMeta } from './github/v4/client/graphql-client.js'; type RemoteConfigNode = NonNullable<NonNullable<RemoteConfigHistoryFragmentFragment['remoteConfigHistory']['edges']>[number]>['remoteConfig']; export declare const RemoteConfigHistoryFragment: import("@graphql-typed-document-node/core").TypedDocumentNode<RemoteConfigHistoryFragmentFragment, unknown>; export declare function parseRemoteConfigFile(remoteConfig: RemoteConfigNode): { githubToken?: string | undefined; assignees?: string[] | undefined; author?: string | null | undefined; autoAssign?: boolean | undefined; autoFixConflicts?: import("../options/option-schema.js").AutoFixConflictsHandler | undefined; autoMerge?: boolean | undefined; autoMergeMethod?: "merge" | "rebase" | "squash" | undefined; backportBinary?: string | undefined; backportBranchName?: string | undefined; branchLabelMapping?: Record<string, string> | undefined; cherryPickRef?: boolean | undefined; conflictResolution?: "commit" | "abort" | "theirs" | undefined; commitPaths?: string[] | undefined; copySourcePRLabels?: string | boolean | string[] | undefined; copySourcePRReviewers?: boolean | undefined; cwd?: string | undefined; since?: string | null | undefined; until?: string | null | undefined; verbose?: boolean | 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; githubActionRunId?: number | undefined; githubApiBaseUrlV3?: string | undefined; githubApiBaseUrlV4?: string | undefined; globalConfigFile?: string | undefined; interactive?: boolean | undefined; logFilePath?: string | undefined; mainline?: number | undefined; ls?: boolean | undefined; maxCount?: number | 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 | number[] | undefined; repoForkOwner?: string | undefined; repoName?: string | undefined; repoOwner?: string | undefined; resetAuthor?: boolean | undefined; reviewers?: string[] | undefined; sha?: string | string[] | undefined; signoff?: boolean | undefined; skipRemoteConfig?: boolean | undefined; sourceBranch?: string | undefined; sourcePRLabels?: string[] | undefined; targetBranchChoices?: (string | { name: string; value?: string | undefined; checked?: boolean | undefined; })[] | undefined; targetBranches?: string[] | undefined; targetPRLabels?: string[] | undefined; help?: boolean | undefined; version?: boolean | undefined; v?: boolean | undefined; accessToken?: string | undefined; upstream?: string | undefined; branches?: (string | { name: string; value?: string | undefined; checked?: boolean | undefined; })[] | undefined; labels?: string[] | undefined; addOriginalReviewers?: boolean | undefined; commitConflicts?: boolean | undefined; autoResolveConflictsWithTheirs?: boolean | undefined; maxNumber?: number | undefined; prFilter?: string | undefined; dateSince?: string | undefined; dateUntil?: string | undefined; dir?: string | undefined; cherrypickRef?: boolean | undefined; details?: boolean | undefined; all?: boolean | undefined; } | undefined; export declare function isMissingConfigFileException(result: OperationResultWithMeta<unknown>): boolean; export {};