#!/bin/bash
export GIT_PAGER=cat PAGER=cat
R=gbharg/agents
echo "=== full review bodies on 12bacdf09 ==="
gh api "repos/$R/pulls/804/reviews" -q '.[] | select(.commit_id|startswith("12bacdf")) | select(.body|length>40) | "\n===== \(.user.login) [\(.state)] =====\n\(.body)"'
echo "=== new line comments on 12bacdf09 ==="
gh api "repos/$R/pulls/804/comments" -q '.[] | select(.commit_id|startswith("12bacdf")) | "\n--- \(.user.login) \(.path):\(.line) ---\n\(.body)"'
echo "DONE_S10"
