fix: disable diff cap (0 = unlimited), let human review PRs
This commit is contained in:
1 parent
c17df29ce4
commit
1bf4f7668f
1 file changed
+3
@@ -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
|
||||
|
||||
Reference in new issue
Block a user