Integrations
When Doc Detective tests fail in CI, you can trigger AI-powered integrations to investigate failures and suggest fixes. These integrations respond to GitHub issues created when tests fail.
How integrations work
- Configure the GitHub Action to create issues on test failure (
create_issue_on_fail: true). - Specify which integrations to trigger in the
integrationsinput. - When tests fail, Doc Detective creates a GitHub issue and mentions the specified integrations.
- Each integration analyzes the test results and provides suggestions.
Supported integrations
Using integrations
To trigger integrations, add them to your GitHub Actions workflow:
Specify multiple integrations by separating them with commas.
Custom prompts
Use the prompt input to customize the instructions sent to integrations:
The default prompt is: “Investigate potential causes of the failures reported in this Doc Detective test output and suggest fixes.”
Integration behaviors
Each integration responds differently when triggered:
Each integration requires setup in your repository before use:
- Claude: Install the Claude GitHub app.
- Copilot: Enable GitHub Copilot and configure it for issue handling.
- Cursor: Install the Cursor GitHub app.
- Dosu: Install the Dosu app.
- Promptless: Connect your repository to Promptless.
- Doc Sentinel: Configure Doc Sentinel.
- OpenCode: Install OpenCode.