MCPcopy Create free account
hub / github.com/braintrustdata/bash-agent-evals / getOrCreateRepo

Function getOrCreateRepo

src/data/transform.ts:41–52  ·  view source on GitHub ↗
(repoName: string, repoId: number)

Source from the content-addressed store, hash-verified

39}
40
41function getOrCreateRepo(repoName: string, repoId: number): RepoFile {
42 if (!repos.has(repoName)) {
43 const [owner, name] = repoName.split('/');
44 repos.set(repoName, {
45 id: repoId,
46 owner,
47 name,
48 full_name: repoName,
49 });
50 }
51 return repos.get(repoName)!;
52}
53
54function processEvent(event: GitHubEvent) {
55 // Track the repo

Callers 1

processEventFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected