UNPKG

backport

Version:

A CLI tool that automates the process of backporting commits

28 lines (27 loc) 894 B
import type { PullRequestState, SourceCommitWithTargetPullRequestFragmentFragment } from '../../graphql/generated/graphql.js'; export declare function getMockSourceCommit({ sourceCommit, sourcePullRequest, timelineItems, }: { sourceCommit: { remoteConfig?: { branchLabelMapping: Record<string, string>; committedDate: string; }; sha?: string; message: string; commitedDate?: string; }; sourcePullRequest: { title?: string; number: number; labels?: string[]; sourceBranch?: string; } | null; timelineItems?: Array<{ state: PullRequestState; targetBranch: string; title?: string; number: number; commitMessages: string[]; repoName?: string; repoOwner?: string; }>; }): SourceCommitWithTargetPullRequestFragmentFragment;