label

Manage the targeted repository’s labels.

Added in version 1.1.0.

Part of the github resource type: states operate on the repository the state run was dispatched to, so there is no repo_name/owner parameter. The profile parameter defaults to the profile named in the resource declaration.

saltext.github.resources.github.states.label.present(name, color=None, description=None, profile=None)[source]

Ensure a label is present in the targeted repository and configured as specified. Unspecified settings are left unmanaged.

name

Name of the label.

color

Hexadecimal color code for the label. A leading # is accepted.

description

Short description of the label.

profile

Profile configuration name to use. Defaults to the resource declaration’s profile.

saltext.github.resources.github.states.label.absent(name, profile=None)[source]

Ensure a label is absent from the targeted repository.

name

Name of the label.

profile

Profile configuration name to use. Defaults to the resource declaration’s profile.