@aaronshaf/ger
Version:
Gerrit CLI
35 lines (31 loc) • 586 B
TypeScript
export type LocalBranchData = {
changeId: string | null;
shortHash: string
subject: string;
}
export type LocalBranchDataMap = {
[branchName: string]: LocalBranchData;
}
export type GerritApproval = {
type: 'SUBM';
description: string;
value: string;
by: {
name: string;
}
}
export type GerritData = {
currentPatchSet: {
approvals?: GerritApproval[]
}
id: string;
status: 'MERGED' | 'ABANDONED';
subject: string;
topic?: string;
url: string;
wip: boolean;
number: number
}
export type GerritDataMap = {
[changeId: string]: GerritData;
}