MCPcopy Create free account
hub / github.com/SethGammon/Citadel / normalizeReviewItems

Function normalizeReviewItems

core/codex/native-integrations.js:357–364  ·  view source on GitHub ↗
(raw)

Source from the content-addressed store, hash-verified

355 const prNumber = options.prNumber || options.pr;
356 if (!repo || !prNumber) throw new Error('buildGitHubReviewFetchCommands requires repo and prNumber');
357 return [
358 ['gh', ['api', `repos/${repo}/issues/${prNumber}/comments`, '--paginate']],
359 ['gh', ['api', `repos/${repo}/pulls/${prNumber}/comments`, '--paginate']],
360 ['gh', ['api', `repos/${repo}/pulls/${prNumber}/reviews`, '--paginate']],
361 ];
362}
363
364function normalizeReviewItems(raw) {
365 if (!raw) return [];
366 if (Array.isArray(raw)) return raw;
367 if (Array.isArray(raw.comments)) return raw.comments;

Callers 1

ingestCodexReviewFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected