INNER CODE UNIT · TypeScript
files
NVIDIA/NemoClaw · .dsh/tools/approve_nemoclaw_fork_workflow_runs/index.ts:91
const files = result.items.map((file) => file.filename);
if (
files.some((path) => typeof path !== "string" || !path || path.length > 4096) ||
new Set(files).size !== files.length
)
throw new Error(`PR #${number} file response contains an invalid or duplicate path`);
return files;
};
const readPr = async (item) => {
const detailsResult = await tools.run_github_cli({
workdir: input.workdir,
args: [
"pr",
"view",
String(item.number),
"--repo",
repo,
"--json",