library
turbot/detect_correct
OverviewPipelines
0
Triggers
0
Variables
GitHub

Correction Handler

Generic pipeline for handling correction actions for Detect/Correct mods.

Run the pipeline

To run this pipeline from your terminal:

flowpipe pipeline run detect_correct.pipeline.correction_handler

Use this pipeline

To call this pipeline from your pipeline, use a step:

step "pipeline" "step_name" {
pipeline = detect_correct.pipeline.correction_handler
}

Params

NameTypeRequiredDescriptionDefault
notifierstringYesThe name of the notifier to use for sending notification messages. Defaults to 'default'default
notification_levelstringYesThe verbosity level of notification to send, valid values are 'verbose', 'info', 'error'. Defaults to 'info'.info
approverslist(string)YesA 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_actionstringYesThe key of the action to use if no approvers are set. Defaults to 'notify'.notify
enabled_actionslist(string)YesA list of action keys identifying which actions are available for approvers, this will define the ordering in the UI.
[
"skip"
]
detect_msgstringYesThe message to display to approvers when asking for a decision or when simply notifying of detections.Detected item requiring action.
actionsmap({ error_msg = string label = string pipeline_args = any pipeline_ref = any style = string success_msg = string value = string })YesA 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.
{
"skip": {
"error_msg": "",
"label": "Skip",
"pipeline_args": {
"notifier": "default",
"send": false,
"text": "Skipped item."
},
"pipeline_ref": {
"description": null,
"documentation": null,
"max_concurrency": null,
"name": "detect_correct.pipeline.optional_message",
"short_name": "",
"tags": null,
"title": null,
"unqualified_name": "pipeline.optional_message"
},
"style": "info",
"success_msg": "",
"value": "skip"
}
}

Outputs

This pipeline has no outputs.