{"id":18995624,"url":"https://github.com/turbot/flowpipe-mod-detect-correct","last_synced_at":"2026-02-26T08:46:36.848Z","repository":{"id":239603375,"uuid":"797223897","full_name":"turbot/flowpipe-mod-detect-correct","owner":"turbot","description":"Detect and correct pipeline library for Flowpipe, enabling writing of standardized detect and correct control flows.","archived":false,"fork":false,"pushed_at":"2024-10-22T12:37:50.000Z","size":31,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":7,"default_branch":"main","last_synced_at":"2025-02-21T12:18:17.938Z","etag":null,"topics":["automation","devops","flowpipe","flowpipe-mod","hacktoberfest","hcl","low-code"],"latest_commit_sha":null,"homepage":"","language":"HCL","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/turbot.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-05-07T12:36:31.000Z","updated_at":"2024-10-22T12:21:32.000Z","dependencies_parsed_at":"2024-05-13T15:43:35.792Z","dependency_job_id":"2fe67b7a-9654-45d8-b643-1fdb75a59755","html_url":"https://github.com/turbot/flowpipe-mod-detect-correct","commit_stats":null,"previous_names":["turbot/flowpipe-mod-detect-correct"],"tags_count":8,"template":false,"template_full_name":null,"purl":"pkg:github/turbot/flowpipe-mod-detect-correct","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/turbot%2Fflowpipe-mod-detect-correct","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/turbot%2Fflowpipe-mod-detect-correct/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/turbot%2Fflowpipe-mod-detect-correct/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/turbot%2Fflowpipe-mod-detect-correct/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/turbot","download_url":"https://codeload.github.com/turbot/flowpipe-mod-detect-correct/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/turbot%2Fflowpipe-mod-detect-correct/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29854578,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-25T22:37:40.667Z","status":"online","status_checked_at":"2026-02-26T02:00:06.774Z","response_time":89,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["automation","devops","flowpipe","flowpipe-mod","hacktoberfest","hcl","low-code"],"created_at":"2024-11-08T17:32:08.115Z","updated_at":"2026-02-26T08:46:36.821Z","avatar_url":"https://github.com/turbot.png","language":"HCL","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Detect and Correct Mod for Flowpipe\n\nDetect and Correct pipeline library for [Flowpipe](https://flowpipe.io), enabling writing of standardized detect and correct control flows.\n\n## Getting Started\n\n### Installation\n\nDownload and install Flowpipe (https://flowpipe.io/downloads). Or use Brew:\n\n```sh\nbrew tap turbot/tap\nbrew install flowpipe\n```\n\n### Usage\n\n[Initialize a mod](https://flowpipe.io/docs/build/index#initializing-a-mod):\n\n```sh\nmkdir my_mod\ncd my_mod\nflowpipe mod init\n```\n\n[Install the Detect and Correct mod](https://flowpipe.io/docs/build/mod-dependencies#mod-dependencies) as a dependency:\n\n```sh\nflowpipe mod install github.com/turbot/flowpipe-mod-detect-correct\n```\n\n[Use the dependency](https://flowpipe.io/docs/build/write-pipelines/index) in a pipeline step:\n\n```sh\nvi my_pipeline.fp\n```\n\n```hcl\npipeline \"my_pipeline\" {\n\n  step \"pipeline\" \"resolve_bad_item\" {\n    pipeline = detect_correct.pipeline.correction_handler\n    args = {\n      detect_msg      = \"Detected an issue on item ${param.item_id}.\"\n      default_action  = \"delete_item\"\n      enabled_actions = [\"skip\", \"delete_item\"]\n      actions = {\n        \"skip\" = {\n          label        = \"Skip\"\n          value        = \"skip\"\n          style        = \"info\"\n          pipeline_ref = detect_correct.pipeline.optional_message\n          pipeline_args = {\n            notifier = notifier.default\n            send     = false\n            text     = \"Skipped resolving item ${param.item_id}.\"\n          }\n          success_msg = \"\"\n          error_msg   = \"\"\n        },\n        \"delete_item\" = {\n          label        = \"Delete Item\"\n          value        = \"delete_item\"\n          style        = \"alert\"\n          pipeline_ref = pipeline.delete_item\n          pipeline_args = {\n            item_id = param.item_id\n          }\n          success_msg = \"Deleted ${param.item_id}.\"\n          error_msg   = \"Error deleting ${param.item_id}\"\n        }\n      }\n    }\n  }\n}\n```\n\n[Run the pipeline](https://flowpipe.io/docs/run/pipelines):\n\n```sh\nflowpipe pipeline run my_pipeline\n```\n\n## Open Source \u0026 Contributing\n\nThis repository is published under the [Apache 2.0 license](https://www.apache.org/licenses/LICENSE-2.0). Please see our [code of conduct](https://github.com/turbot/.github/blob/main/CODE_OF_CONDUCT.md). We look forward to collaborating with you!\n\n[Flowpipe](https://flowpipe.io) is a product produced from this open source software, exclusively by [Turbot HQ, Inc](https://turbot.com). It is distributed under our commercial terms. Others are allowed to make their own distribution of the software, but cannot use any of the Turbot trademarks, cloud services, etc. You can learn more in our [Open Source FAQ](https://turbot.com/open-source).\n\n## Get Involved\n\n**[Join #flowpipe on Slack →](https://flowpipe.io/community/join)**\n\nWant to help but not sure where to start? Pick up one of the `help wanted` issues:\n\n- [Flowpipe](https://github.com/turbot/flowpipe/labels/help%20wanted)\n- [Detect and Correct Mod](https://github.com/turbot/flowpipe-mod-detect-correct/labels/help%20wanted)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fturbot%2Fflowpipe-mod-detect-correct","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fturbot%2Fflowpipe-mod-detect-correct","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fturbot%2Fflowpipe-mod-detect-correct/lists"}