Review

loom-builderscriptbash
Path: loom-builder/review.shRelative: review.shSubproject: loom-builderCategory: scripts
Lines: 51Bytes: 2,127Imports: 0Exports: 0

Content Preview

  1. #!/usr/bin/env bash
  2. # loom-builder review.sh — commit-pinned Gemini review of a sprint diff.
  3. # Round-1 lesson: reviews against the whole tree drift as later sprints land;
  4. # pin every review to the exact commit range it covers.
  5. #
  6. # Usage: review.sh <repo-dir> <base-sha> <label> [head-sha=HEAD]
  7. # → writes <repo-dir>/REVIEW_<label>.md (records both SHAs)
  8. # → prints CRITIQUE_WRITTEN on success
  9. set -euo pipefail
  10. REPO="${1:?usage: review.sh <repo-dir> <base-sha> <label> [head-sha]}"
  11. BASE="${2:?ba