Skip to content

@usine/config/label

A label the factory creates in every managed repository.

  • Schema.Class

new DeclaredLabel(…args): DeclaredLabel

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

DeclaredLabel

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

readonly description: Option<string>

readonly name: string & Brand<"GitHubLabelName">

GitHubLabelColor = typeof GitHubLabelColor.Type

Six hex digits without a leading hash, as GitHub stores label colors.


GitHubLabelName = typeof GitHubLabelName.Type

GitHub trims label names and caps them at 50 characters. A name outside that contract never matches the catalog and would be re-created every cycle.

const canonicalLabelName: (name) => string

Compare label names on this key: GitHub matches them case-insensitively.

Parameter Type
name string

string


const GitHubLabelColor: Schema.brand<Schema.String, "GitHubLabelColor">

Six hex digits without a leading hash, as GitHub stores label colors.


const GitHubLabelName: Schema.brand<Schema.String, "GitHubLabelName">

GitHub trims label names and caps them at 50 characters. A name outside that contract never matches the catalog and would be re-created every cycle.