add schedule & workflow dispatch paths. Also make prepare logic conditional

This commit is contained in:
km-anthropic
2025-07-28 11:28:06 -07:00
parent a53ce607e4
commit 999dd8a3b6
13 changed files with 479 additions and 90 deletions

20
src/prepare/types.ts Normal file
View File

@@ -0,0 +1,20 @@
import type { ParsedGitHubContext } from "../github/context";
import type { Octokits } from "../github/api/client";
import type { Mode } from "../modes/types";
export type PrepareResult = {
commentId?: number;
branchInfo: {
baseBranch: string;
claudeBranch?: string;
currentBranch: string;
};
mcpConfig: string;
};
export type PrepareOptions = {
context: ParsedGitHubContext;
octokit: Octokits;
mode: Mode;
githubToken: string;
};