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