Skip to main content

Apply Labels

Latest release apply-labels 0.1.3

Label the merged change request with the outcome of its apply

Usage

repository {
after_hook "apply-labels" {
commands = ["apply"]
execute = ["pipelines", "hook", "apply-labels@v0.1"]
}
}

Inputs

Configure inputs in the hook's env block.

Optional

VariableDescription
PIPELINES_HOOK_APPLY_LABELS_SUCCESS_LABELLabel for a change request whose apply succeeded. Defaults to applied.
PIPELINES_HOOK_APPLY_LABELS_SUCCESS_LABEL_COLORColor of the success label as #rrggbb. Defaults to #1a7f37.
PIPELINES_HOOK_APPLY_LABELS_FAILURE_LABELLabel for a change request whose apply failed. Defaults to needs apply.
PIPELINES_HOOK_APPLY_LABELS_FAILURE_LABEL_COLORColor of the failure label as #rrggbb. Defaults to #b3261e.
PIPELINES_HOOK_APPLY_LABELS_LOG_LEVELLog verbosity. A more verbose PIPELINES_LOG_LEVEL overrides it. One of trace, debug, info, warning, error, fatal, panic. Defaults to info.
PIPELINES_HOOK_APPLY_LABELS_TOKENToken allowed to edit labels on the repository's change requests. Unset, the hook warns instead of labeling.