Skip to content

@usine/orchestrator/label-reconciler

  • Schema.Class

new LabelPreflightFinding(…args): LabelPreflightFinding

Parameter Type
…args [props: object, options?: MakeOptions]

LabelPreflightFinding

readonly errorTag: string

readonly label: string & Brand<"GitHubLabelName">

readonly message: string

readonly repository: string & Brand<"RepositoryName">


Creates the labels a factory declares that one repository’s stored catalog lacks.

  • Context.ServiceClass

readonly Service: object

The service’s operations: what yield* LabelReconciler returns.

readonly reconcile: (repository, declared, existing) => Effect.Effect<LabelReconciliation>

Parameter Type
repository RepositoryName
declared ReadonlyArray<DeclaredLabel>
existing ReadonlyArray<RepositoryLabel>

Effect.Effect<LabelReconciliation>

readonly static layer: Layer<LabelReconciler, never, GitHubLabelWriter>

readonly catalogChanged: boolean

True when a label was created, so the poll cursor must drop its catalog ETag.

readonly findings: readonly LabelPreflightFinding[]

readonly labels: readonly RepositoryLabel[]

readonly nextPollAt: Option<Utc>

When a creation rate limit asks the next cycle to wait; this cycle’s triggers still run.