Skip to content

@usine/github/label-writer

Creates repository labels under the App installation token.

  • Context.ServiceClass

readonly Service: object

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

readonly create: (repository, label) => Effect.Effect<RepositoryLabel, GitHubAppError>

Parameter Type
repository RepositoryName
label NewRepositoryLabel

Effect.Effect<RepositoryLabel, GitHubAppError>

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


One label definition as GitHub’s create-label endpoint accepts it.

  • Schema.Class

new NewRepositoryLabel(…args): NewRepositoryLabel

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

NewRepositoryLabel

readonly color: Option<string & Brand<"GitHubRepositoryLabelColor">>

readonly description: Option<string>

readonly name: string & Brand<"GitHubRepositoryLabelName">