saltext.github.utils.gh.statecores.labels¶
State core managing repository labels.
- saltext.github.utils.gh.statecores.labels.present(conn, name, repo_name, *, color=None, description=None, owner=None, test=False)[source]¶
Ensure a label is present in a repository and configured as specified. Unspecified settings are left unmanaged.
- conn
GitHubConnectionto use.- name
Name of the label.
- repo_name
Name of the repository.
- color
Hexadecimal color code for the label. A leading
#is accepted.- description
Short description of the label.
- owner
Owner of the repository. Defaults to the connection’s owner.
- test
Only project the changes without applying them (
testmode).
- saltext.github.utils.gh.statecores.labels.absent(conn, name, repo_name, *, owner=None, test=False)[source]¶
Ensure a label is absent from a repository.
- conn
GitHubConnectionto use.- name
Name of the label.
- repo_name
Name of the repository.
- owner
Owner of the repository. Defaults to the connection’s owner.
- test
Only project the changes without applying them (
testmode).