Description
Support a per-repository AI prompt file for the test oracle integration. If an ORACLE.md file exists in the repository root, its content is read and sent to the oracle server as the prompt for AI analysis.
This allows each repository to customize the AI's behavior when analyzing PRs for test recommendations (e.g., specific testing conventions, framework-specific instructions, areas to focus on).
Requirements
- Check if
ORACLE.md exists in the repository root (use the cloned repo path)
- If found, read its content and include it in the
/analyze request payload
- If not found, omit the prompt (oracle server uses its default prompt)
- The oracle server's
/analyze endpoint needs to support a prompt field (may require upstream changes to pr-test-oracle)
Deliverables
Notes
- The repository is already cloned before handlers run (except for check_run events)
- The cloned repo path is available via
github_webhook context
Description
Support a per-repository AI prompt file for the test oracle integration. If an
ORACLE.mdfile exists in the repository root, its content is read and sent to the oracle server as the prompt for AI analysis.This allows each repository to customize the AI's behavior when analyzing PRs for test recommendations (e.g., specific testing conventions, framework-specific instructions, areas to focus on).
Requirements
ORACLE.mdexists in the repository root (use the cloned repo path)/analyzerequest payload/analyzeendpoint needs to support apromptfield (may require upstream changes to pr-test-oracle)Deliverables
ORACLE.mdfrom cloned repo incall_test_oracle()Notes
github_webhookcontext