library
turbot/detect_correct
Get Involved
Version
Pipeline: Correction Handler
Generic pipeline for handling correction actions for Detect and Correct mods.
Run the pipeline
To run this pipeline from your terminal:
flowpipe pipeline run detect_correct.pipeline.correction_handlerUse this pipeline
To call this pipeline from your pipeline, use a step:
step "pipeline" "step_name" { pipeline = detect_correct.pipeline.correction_handler }Params
| Name | Type | Required | Description | Default |
|---|---|---|---|---|
| notifier | notifier | Yes | The notifier to use for sending notification messages. Defaults to the default notifier. | notifier.default |
| notification_level | string | Yes | The verbosity level of notification to send, valid values are 'verbose', 'info', 'error'. Defaults to 'info'. | info |
| approvers | list(notifier) | Yes | A list of notifiers to use for decisions/approvals on actions to undertake, if set to an empty list, the 'default_action' will be used as the outcome. Defaults to an empty list. | - |
| default_action | string | Yes | The key of the action to use if no approvers are set. Defaults to 'notify'. | notify |
| enabled_actions | list(string) | Yes | A list of action keys identifying which actions are available for approvers, this will define the ordering in the UI. | |
| detect_msg | string | Yes | The message to display to approvers when asking for a decision or when simply notifying of detections. | Detected item requiring action. |
| actions | map(object({
label = string
value = string
style = string
pipeline_ref = any
pipeline_args = any
success_msg = string
error_msg = string
})) | Yes | A map of actions, if approvers are set these will be offered as options to select, else the one matching the default_action will be used. | |
Outputs
This pipeline has no outputs.