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
| Variable | Description |
|---|---|
PIPELINES_HOOK_APPLY_LABELS_SUCCESS_LABEL | Label for a change request whose apply succeeded. Defaults to applied. |
PIPELINES_HOOK_APPLY_LABELS_SUCCESS_LABEL_COLOR | Color of the success label as #rrggbb. Defaults to #1a7f37. |
PIPELINES_HOOK_APPLY_LABELS_FAILURE_LABEL | Label for a change request whose apply failed. Defaults to needs apply. |
PIPELINES_HOOK_APPLY_LABELS_FAILURE_LABEL_COLOR | Color of the failure label as #rrggbb. Defaults to #b3261e. |
PIPELINES_HOOK_APPLY_LABELS_LOG_LEVEL | Log 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_TOKEN | Token allowed to edit labels on the repository's change requests. Unset, the hook warns instead of labeling. |
Related documentation
- Gruntwork Provided Hooks - version pinning and configuration common to every provided hook.
- Configuring Hooks - the full set of hook fields.
- Authentication & Secrets - giving a hook cloud credentials.