fix: disable diff cap (0 = unlimited), let human review PRs

This commit is contained in:
sam committed 2026-07-23 18:57:23 +10:00
1 parent c17df29ce4
commit 1bf4f7668f
1 file changed
+3
+3
View File
@@ -76,6 +76,9 @@ func StageCommitPush(message func(*TaskContext) string) Stage {
// oversized changes need human pre-approval, not an auto-opened PR.
func StageDiffCap() Stage {
return Stage{Name: "diff-cap", Run: func(ctx context.Context, tc *TaskContext) error {
if tc.Cfg.DiffCapLines <= 0 {
return nil
}
lines, err := tc.Trees.ChangedLines(ctx, tc.Dir, tc.Repo.BaseBranch())
if err != nil {
return err