MCPcopy Create free account
hub / github.com/cli/cli / validate

Function validate

evals/src/suites/events/suite.ts:59–64  ·  view source on GitHub ↗
(rawEvents)

Source from the content-addressed store, hash-verified

57 summary: fixture.pr?.html_url ?? `https://github.com/${fixture.repo} (agent creates the PR)`,
58 actor: trialActor as TrialActor,
59 validate(rawEvents) {
60 if (!seeding && subscriptionLimitHit(rawEvents as unknown[])) {
61 throw new InfrastructureError("The GH_EVAL_TOKEN user hit the event subscription limit, so this "
62 + "trial cannot be graded. Clean up leftover subscriptions before running again.");
63 }
64 },
65 snapshot: observedUntil => captureSnapshot(github, subscriber, fixture, workDir, env, actor.actions, observedUntil),
66 };
67}

Callers

nothing calls this directly

Calls 1

subscriptionLimitHitFunction · 0.85

Tested by

no test coverage detected