Documentation Index
Fetch the complete documentation index at: https://trunk-4cab4936-mintlify-migrate-trunk-docs-1778256504.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
Overview
Thefix-flaky-test tool retrieves insights and historical failure analysis about a flaky test. This tool allows AI assistants to access investigation results and apply fixes directly in your development environment.
Return Type: Structured analysis data with fix recommendations. Structure: issue, root cause, proposed fix
Parameters
Required Parameters
| Parameter | Type | Description |
|---|---|---|
repoName | string | Repository name in owner/repo format (e.g., trunk-io/trunk) |
Optional Parameters
| Parameter | Type | Description |
|---|---|---|
fixId | string | Specific fix identifier from CI Autopilot comment (e.g., FIX-abc123) |
orgSlug | string | The name of your organization in the Trunk app |
Getting Parameter Values
If your AI assistant doesn’t have direct access to Git information, use these commands: Get repository name:trunk-io/trunk from git@github.com:trunk-io/trunk.git)
Usage Examples
With Fix ID
Sample Response
Error Handling
| Error | Cause | Resolution |
|---|---|---|
Fix {fixId} not found | Invalid or non-existent fix ID | Verify the fix ID from the original CI Autopilot comment |
fixId must be provided | Missing required query parameter | Fix ID is required |
| Repository authorization error | Insufficient permissions or invalid repo name | Verify repository name format and your access permissions |