@devries-cameron20 / t3code Mirror · read-only
Fork 0

The best way to control Claude Code, Codex and more from any computer or phone

Mirrored from https://github.com/Camo67/t3code.git

Synced Nov 21, 04:45 UTC

main
ts 8 lines 415 Bytes
Raw
1 import type { PullRequestChangeBreakdown } from "@t3tools/contracts";
2 import { summarizeChangedFiles } from "@t3tools/shared/changedFileKind";
3 import type { ProviderFileStats } from "@t3tools/source-control-core/server/PullRequestProvider";
4
5 export function toChangeBreakdown(stats: ProviderFileStats): PullRequestChangeBreakdown {
6 if (stats.truncated) return null;
7 return summarizeChangedFiles(stats.files);
8 }