~cytrogen/gstack

ref: 91bea06675f4f7ed5554f3d2a82514f29d7addfd gstack/bin/gstack-review-log -rwxr-xr-x 409 bytes
91bea066 — Garry Tan fix: plan mode exception for review log + telemetry writes (v0.9.0.1) (#234) a month ago
                                                                                
1
2
3
4
5
6
7
8
9
#!/usr/bin/env bash
# gstack-review-log — atomically log a review result
# Usage: gstack-review-log '{"skill":"...","timestamp":"...","status":"..."}'
set -euo pipefail
SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)"
eval $("$SCRIPT_DIR/gstack-slug" 2>/dev/null)
GSTACK_HOME="${GSTACK_HOME:-$HOME/.gstack}"
mkdir -p "$GSTACK_HOME/projects/$SLUG"
echo "$1" >> "$GSTACK_HOME/projects/$SLUG/$BRANCH-reviews.jsonl"