github-pr-automation
Version:
MCP server and CLI for automated GitHub PR management, review resolution, and workflow optimization
57 lines • 1.66 kB
TypeScript
import { z } from "zod";
export declare const ManageStackedPRsSchema: z.ZodObject<{
base_pr: z.ZodString;
dependent_pr: z.ZodString;
auto_fix: z.ZodDefault<z.ZodBoolean>;
use_onto: z.ZodOptional<z.ZodBoolean>;
onto_base: z.ZodOptional<z.ZodString>;
max_iterations: z.ZodDefault<z.ZodNumber>;
cursor: z.ZodOptional<z.ZodString>;
}, z.core.$strip>;
export type ManageStackedPRsInput = z.infer<typeof ManageStackedPRsSchema>;
export interface Command {
step: number;
type: "git" | "ci_wait" | "test" | "fix" | "verification";
command: string;
description: string;
estimated_duration?: string;
can_automate: boolean;
}
export interface ManageStackedPRsOutput {
base_pr: string;
dependent_pr: string;
is_stacked: boolean;
stack_info: {
base_branch: string;
dependent_base: string;
matches: boolean;
visualization: string;
};
changes_detected: boolean;
change_summary?: {
new_commits_in_base: number;
commits: Array<{
sha: string;
message: string;
author: string;
}>;
files_changed: string[];
};
rebase_strategy?: {
recommended: "regular" | "onto";
reason: string;
regular_command?: string;
onto_command?: string;
ai_should_decide: boolean;
considerations: string[];
};
commands: Command[];
nextCursor?: string;
summary: {
action_required: boolean;
reason: string;
estimated_total_time: string;
risk_level: "low" | "medium" | "high";
};
}
//# sourceMappingURL=schema.d.ts.map