Files
ghbot/src/types.ts
T

41 lines
682 B
TypeScript

export type PullRequestRef = {
owner: string;
repo: string;
pullNumber: number;
};
export type PullRequestFile = {
filename: string;
patch?: string;
status: string;
additions: number;
deletions: number;
};
export type ReviewFinding = {
path: string;
line: number;
title: string;
body: string;
};
export type ReviewDecision = {
review: ReviewFinding[];
change: ReviewFinding[];
comment: string;
result: {
canMerge: boolean;
summary: string;
shouldClosePullRequest: boolean;
closeReason: string;
};
};
export type ReviewMode = "strict" | "normal";
export type DiffPosition = {
path: string;
line: number;
side: "RIGHT";
};