import { readFileSync } from "fs";
const data = JSON.parse(readFileSync("/app/stale_prs.json", "utf-8"));
if (Array.isArray(data)) {
  console.log("Total stale PRs:", data.length);
  const numbers = data.map(p => p.number);
  console.log("PR numbers:", numbers.join(", "));
  if (data.length > 0) {
    console.log("Sample PR #1:");
    console.log(JSON.stringify({id: data[0].id, number: data[0].number, title: data[0].title, stale_state: data[0].stale_state, ci_status: data[0].ci_status, has_conflicts: data[0].has_conflicts, is_conflict: data[0].is_conflict}, null, 2));
  }
} else {
  console.log("Not an array:", typeof data, Object.keys(data));
  console.log(JSON.stringify(data, null, 2).substring(0, 2000));
}
