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

Method constructor

evals/src/suites/events/actor.ts:21–34  ·  view source on GitHub ↗
(
    private readonly github: EventsGitHub,
    private readonly reviewer: EventsGitHub,
    readonly fixture: Fixture,
    private readonly fallbackMs: number,
    now: number,
  )

Source from the content-addressed store, hash-verified

19 done = false;
20
21 constructor(
22 private readonly github: EventsGitHub,
23 private readonly reviewer: EventsGitHub,
24 readonly fixture: Fixture,
25 private readonly fallbackMs: number,
26 now: number,
27 ) {
28 const [first, ...remaining] = scenarios[fixture.scenario].steps;
29 this.step = first;
30 this.remaining = remaining;
31 this.phaseStartedAt = now;
32 this.fallbackStartedAt = now;
33 this.phaseHead = fixture.initialHead;
34 }
35
36 get phase(): Phase {
37 return this.step.kind;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected