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.
Methods
Section titled “Methods”createCheckRun()
Section titled “createCheckRun()”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.
Parameters
Section titled “Parameters”string
string
Returns
Section titled “Returns”Promise<number>
listCheckRuns()
Section titled “listCheckRuns()”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.
Parameters
Section titled “Parameters”string
Returns
Section titled “Returns”Promise<AggregateCheckRun[]>
listCommitStatuses()
Section titled “listCommitStatuses()”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.
Parameters
Section titled “Parameters”string
Returns
Section titled “Returns”Promise<AggregateCommitStatus[]>
updateCheckRun()
Section titled “updateCheckRun()”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.
Parameters
Section titled “Parameters”number
Returns
Section titled “Returns”Promise<void>