MCPcopy Index your code
hub / github.com/braintrustdata/bash-agent-evals / getOrCreateRepo

Function getOrCreateRepo

src/data/codemode-transform.ts:96–107  ·  view source on GitHub ↗
(repoName: string, repoId: number)

Source from the content-addressed store, hash-verified

94}
95
96function getOrCreateRepo(repoName: string, repoId: number): Repo {
97 if (!reposMap.has(repoName)) {
98 const [owner, name] = repoName.split('/');
99 reposMap.set(repoName, {
100 id: repoId,
101 owner,
102 name,
103 fullName: repoName,
104 });
105 }
106 return reposMap.get(repoName)!;
107}
108
109function processEvent(event: GitHubEvent) {
110 const repo = getOrCreateRepo(event.repo.name, event.repo.id);

Callers 1

processEventFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected