Skip to content

@usine/engine/repository-label-projection

  • Schema.Class

new RepositoryLabel(…args): RepositoryLabel

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

RepositoryLabel

readonly color: Option<string>

readonly description: Option<string>

readonly name: string


The latest complete label catalog polling observed for one repository.

  • Schema.Class

new RepositoryLabelProjection(…args): RepositoryLabelProjection

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

RepositoryLabelProjection

readonly labels: readonly RepositoryLabel[]

readonly repository: string & Brand<"RepositoryName">


  • Context.ServiceClass

readonly Service: object

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

readonly get: (repository) => Effect.Effect<Option.Option<RepositoryLabelProjection>, EnginePersistenceError>

Parameter Type
repository RepositoryName

Effect.Effect<Option.Option<RepositoryLabelProjection>, EnginePersistenceError>

readonly static layer: Layer<RepositoryLabelProjectionReader, never, RunDatabase>


  • Context.ServiceClass

readonly Service: object

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

readonly replace: (projection) => Effect.Effect<boolean, EnginePersistenceError>

true means the durable projection changed.

Parameter Type
projection RepositoryLabelProjection

Effect.Effect<boolean, EnginePersistenceError>

readonly static layer: Layer<RepositoryLabelProjectionWriter, never, RunDatabase>

const RepositoryLabelColor: Schema.String

Six hex digits, as GitHub stores label colors. Absent for catalogs stored before colors were kept.