Skip to content

AggregateApi

Defined in: cli/astromech/src/aggregate/post-aggregate/post-aggregate.type.ts:36

The four calls postAggregate needs. Sentinel backs them with @theholocron/github-client, the CLI with the source provider, and the tests with a fake, so the one function serves all three.

createCheckRun(sha, name, write): Promise<number>

Defined in: cli/astromech/src/aggregate/post-aggregate/post-aggregate.type.ts:42

Creates the aggregate check run and returns its id.

string

string

AggregateWrite

Promise<number>


listCheckRuns(sha): Promise<AggregateCheckRun[]>

Defined in: cli/astromech/src/aggregate/post-aggregate/post-aggregate.type.ts:38

Every check run on the commit, the aggregate’s own included.

string

Promise<AggregateCheckRun[]>


listCommitStatuses(sha): Promise<AggregateCommitStatus[]>

Defined in: cli/astromech/src/aggregate/post-aggregate/post-aggregate.type.ts:40

The commit statuses on the commit, newest first.

string

Promise<AggregateCommitStatus[]>


updateCheckRun(id, write): Promise<void>

Defined in: cli/astromech/src/aggregate/post-aggregate/post-aggregate.type.ts:44

Changes one run the aggregate made. A provider that refuses (a completed run cannot reopen) throws.

number

AggregateWrite

Promise<void>