Skip to main content

Practice ยท 3 of 3

PR Size Gate

Write prVerdict(files) โ€” files is an array of { path, additions, deletions }. Rules: a PR over 400 total changed lines gets "split"; one touching more than 10 files gets "too-many-files"; both conditions โ†’ "split" (size dominates); otherwise "ok". Changed lines = additions + deletions.

Difficulty: intermediate

Back to lesson: Practice: Review & Conventional Commits โ€” Practice