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

Function sourceForArgs

scripts/codex-review-fetch.js:78–83  ·  view source on GitHub ↗
(args)

Source from the content-addressed store, hash-verified

76}
77
78function sourceForArgs(args) {
79 const pathArg = args.find((value) => value.startsWith('repos/')) || '';
80 if (pathArg.includes('/issues/')) return 'github-issue-comment';
81 if (pathArg.endsWith('/reviews')) return 'github-pr-review';
82 return 'github-review-comment';
83}
84
85function fetchWithGh(commands, ghPath) {
86 const batches = [];

Callers 1

fetchWithGhFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected