Use this template
Open CircleCI Failure Fix in Devin and create the automation with the default configuration. You can customize it before saving.
What this automation does
The CircleCI MCP gives Devin deep integration with your CI — not just the pass/fail status, but the full log stream, test results, artifacts, and config. That’s the difference between “a test failed” and “this assertion at line 47 failed because the expected string changed last week.” Devin uses that context to ship fixes that actually work the first time.How it works
Trigger: Github event —check.run
- Event:
github:check_run- Conditions:
actioneqcompletedcheck_run.conclusioneqfailurecheck_run.namecontainscirclecirepository.full_nameeqyour-org/your-repo
- Conditions:
Prerequisites
- Integrations:
- MCP servers:
- CircleCI MCP — connects Devin to CircleCI
Example prompt
The template ships with this prompt. You can edit it after clicking Use template, or leave it as-is.Setting it up
- Open Automations → Templates in Devin.
- Click CircleCI Failure Fix. The create page opens with this template pre-filled.
- Connect any required integrations and install MCP servers if you haven’t already.
- Replace any placeholder values in the trigger conditions (for example, swap
your-org/your-repofor your actual repo). - Review the prompt and adjust it for your team’s language, conventions, and guardrails.
- Click Create automation.
When to use this template
- Teams running on CircleCI who want the same auto-fix pattern as GitHub Actions users
- Complex CircleCI workflows with multi-job orchestration
- Reducing the friction of keeping legacy CI pipelines green
- Auto-unblocking developers during major refactor work
Customization ideas
- Scope to specific pipelines or branches
- Tune the ACU cap based on typical pipeline complexity
- Skip bot-authored commits to avoid fix-loops
- Combine with SonarQube Quality Gate Fix for full quality automation
