#!/usr/bin/env bash
set -euo pipefail
gh api repos/gbharg/exult-agent/pulls/67/comments \
  --jq '.[] | "=== ID " + (.id|tostring) + " | " + .path + ":" + (.line|tostring) + " | user=" + .user.login + " | reply_to=" + (.in_reply_to_id|tostring) + "\n" + .body + "\n"' \
  > /tmp/curo_comments.txt
echo "done: $(wc -l < /tmp/curo_comments.txt) lines"
