Skip to content

@usine/github/item-writer

Label writes on GitHub Items, used when the Board moves a card between lanes.

  • Context.ServiceClass

readonly Service: object

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

readonly updateLabels: (repository, item, mutation) => Effect.Effect<ReadonlyArray<string>, GitHubAppError>

Adds and removes only the named labels and keeps every other applied label.

Parameter Type
repository RepositoryName
item ItemNumber
mutation ItemLabelMutation

Effect.Effect<ReadonlyArray<string>, GitHubAppError>

readonly static layer: Layer<GitHubItemWriter, never, HttpClient | GitHubApp>


Labels to add and remove on one Item. Labels outside these two sets are left alone.

  • Schema.Class

new ItemLabelMutation(…args): ItemLabelMutation

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

ItemLabelMutation

readonly add: readonly string[]

readonly remove: readonly string[]