fix: сохранить объект вердикта между стадиями ревью (#551)

Issue: #551
User-Visible: no
This commit is contained in:
Sergey Matyunin
2026-09-13 14:11:42 +03:00
parent d07aac3581
commit 23f48829c2
3 changed files with 25 additions and 2 deletions
+3 -2
View File
@@ -1082,10 +1082,11 @@ jobs:
legacy="docs/reviews/${marker}-${NUM}-r${CYCLE}.md"
if [ ! -f "$SOURCE" ] && [ -f "$legacy" ]; then cp "$legacy" "$SOURCE"; fi
test -s "$SOURCE" || { echo "::error::модель не оставила документ ревью"; exit 1; }
printf '%s' "$OUT" | jq -e '
printf '%s' "$OUT" > "$RUNNER_TEMP/verdict.json"
jq -e '
(.verdict == "green" or .verdict == "yellow" or .verdict == "red")
and (.high | type == "number") and (.medium | type == "number")
and (.summary | type == "string")' > "$RUNNER_TEMP/verdict.json"
and (.summary | type == "string")' "$RUNNER_TEMP/verdict.json" >/dev/null
dir="$RUNNER_TEMP/review-result"
mkdir -p "$dir"
cp "$RUNNER_TEMP/review-prepared/prepared.json" "$dir/prepared.json"