backport
Version:
A CLI tool that automates the process of backporting commits
28 lines (27 loc) • 886 B
TypeScript
import { PullRequestState, SourceCommitWithTargetPullRequestFragmentFragment } from '../../graphql/generated/graphql';
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;