# CI failure triage

Summarizes failed CI runs and pings the author.

Canonical HTML page: <https://agenta.ai/marketplace/ci-failure-triage>

[Use it for free](https://cloud.agenta.ai/?template=ci-failure-triage)

- Category: Engineering
- Author: [Agenta team](https://agenta.ai/creators/agenta)
- Trigger: Workflow run failed
- Tools: 2 GitHub tools
- Version: 1.0.0

## Overview

Reads the logs when CI fails, summarizes the likely cause, and pings the author.

## How it works

1. Runs when a CI workflow run fails.
2. Read runs and post comments with GitHub.
3. Notify a channel with Slack (optional).

## Example output

Workflow run failed on main

1. Pulled the failing workflow run's logs
2. Traced the failure to a migration that ran out of order
3. Commented on the commit with the cause and the failing step

The run failed in the migration step, not the tests — one migration expects a column the previous one hasn't added yet. I've pinged the commit author with the log excerpt.

## How to set this up

1. Use it for free. Agenta creates the agent from this template in your workspace.
2. Connect GitHub and Slack. Each app connects from the setup screen.
3. Test, then let it run. Run it once to check the result. Then the trigger takes over.

## What it needs

- GitHub account
- Slack account (Optional)

## Apps

GitHub, Slack

## Related templates

- [PR reviewer](https://agenta.ai/marketplace/pr-reviewer)
- [Changelog writer](https://agenta.ai/marketplace/changelog-writer)
- [Issue triage](https://agenta.ai/marketplace/issue-triage)

---

## Machine-readable

- [Sitemap](https://agenta.ai/sitemap-index.xml)
- [llms.txt](https://agenta.ai/llms.txt)
- [OpenAPI specification](https://agenta.ai/openapi.json)
- [Documentation](https://docs.agenta.ai)

Every page on https://agenta.ai serves this representation when requested with
`Accept: text/markdown`.
