GitAuto Logo
  1. Home
  2. Pricing
  3. Docs
  4. Dashboard
  5. Blog
  6. Contact
  1. Home
  2. How It Works
  3. Use Cases
  4. Pricing
  5. Docs
  6. Dashboard
  7. FAQ
  8. Blog
  9. Contact

Trigger-Specific Prompts

GitAuto loads different XML prompt files depending on what triggered the run - a new PR, a CI test failure, a review comment, or a scheduled task. Each prompt contains specialized instructions tailored to that scenario, ensuring the model approaches each type of work with the right mindset and context.

Why This Exists

A test-failure response requires fundamentally different context than a new-PR response. When fixing a test failure, the model needs to focus on error logs, understand what changed, and produce a minimal fix. When creating a new PR, the model needs to understand the task, explore relevant source files, and write comprehensive tests. A one-size-fits-all prompt led to poor results in both cases - the prompt was either too generic to be useful or too specific to one scenario. By splitting prompts per trigger type, each set of instructions can be optimized independently.

Why Models Need Explicit Context

Models have no awareness of what triggered them. A model receiving "fix this test failure" doesn't inherently know whether it was triggered by a CI failure, a reviewer comment, or a scheduled run. Each trigger implies different constraints - a review comment means someone is watching and expects a response; a schedule trigger means no one is waiting - but models treat all inputs identically unless explicitly told the context. Without trigger-specific instructions, the model applies the same generic approach to every situation, missing the nuances that make each scenario different. It cannot infer intent from the input alone because it has no memory of how or why it was invoked.

How It Works

When a trigger fires, GitAuto determines the trigger type and loads the corresponding XML prompt file. The main trigger types are:

  • New PR - instructions for implementing features or writing tests from a GitHub issue description
  • Test failure - instructions for analyzing CI logs and creating targeted fix commits
  • Review comment - instructions for understanding reviewer feedback and making requested changes
  • Schedule - instructions for proactive work like generating tests for uncovered files

The prompt files use XML structure for clear section boundaries. They are injected into the system message alongside other context like repository rules and coding standards.

Related Features

  • Coding Standards - universal rules injected alongside trigger-specific prompts
  • Test Failure Trigger - the trigger type that benefits most from specialized prompts

Need Help?

Have questions or suggestions? We're here to help you get the most out of GitAuto.

Contact us with your questions or feedback!

CI Log CleaningCoding Standards

Getting Started

  • Installation
  • Setup

Triggers

  • Overview
  • Schedule Trigger
  • Test Failure Trigger
  • Review Comment Trigger
  • Dashboard Trigger

Coverage Dashboard

  • Overview
  • Python Testing
  • JavaScript Testing
  • Java Testing
  • Go Testing
  • PHP Testing
  • Ruby Testing
  • Flutter Testing
  • Multi-Language
  • Coverage Charts

Customization

  • Repository Rules
  • Output Language
  • GITAUTO.md

Integrations

  • CircleCI Integration
  • npm Integration

How It Works

Context Enrichment

  • Line Numbers
  • Full File Reads
  • Test File Preloading
  • Test Naming Detection
  • Error Baselines
  • CI Log Cleaning
  • Trigger-Specific Prompts
  • Coding Standards

Output Auto-Correction

  • Diff Hunk Repair
  • Diff Prefix Repair
  • Tool Name Correction
  • Tool Argument Correction
  • Import Sorting
  • Trailing Space Removal
  • Final Newline
  • Line Ending Preservation
  • Sanitize Tool Arguments
  • Lint Disable Headers

Quality Verification

  • Formatting
  • Linting
  • Type Checking
  • Test Execution
  • Coverage Enforcement
  • phpcs / phpstan Support
  • PHPUnit Support
  • pytest Support
  • Snapshot Auto-Update
  • Untestable Detection
  • Should-Skip Detection
  • Dead Code Removal
  • Quality Check Scoring
  • Quality Checklist

Safety Guardrails

  • File Edit Restrictions
  • Temperature Zero
  • PR/Branch Checks
  • Race Condition Prevention
  • Bot Loop Prevention
  • Webhook Deduplication
  • Duplicate Error Hashing
  • Infrastructure Failure Detection
  • Strict Tool Schemas
  • No-Change Detection

Token/Cost Management

  • Token Trimming
  • Outdated Diff Removal
  • Stale File Replacement
  • Skip CI Intermediate
  • CI Log Deduplication
  • Web Fetch Summarization
  • Context Forgetting
  • File Query Routing
  • On-Demand Diff

Resilience & Recovery

  • Model Fallback
  • Overload Retry
  • Forced Verification
  • Error Files Editable

Hallucination Prevention

  • Web Search
  • URL Fetching
  • Anti-Hallucination Prompts
  • GITAUTO.md Restrictions
  • Review Response Guardrails

Ready to improve your test coverage?

Go from 0% to 90% test coverage with GitAuto. Start for free, no credit card required.

Install FreeContact Sales

Product

  • Home
  • Why GitAuto
  • What GitAuto Does
  • How It Works
  • Use Cases
  • How to Get Started
  • Solution
  • Pricing
  • Pricing Details
  • ROI Calculator
  • ROI Methodology
  • FAQ
  • Blog
  • Contact

Dashboard

  • Dashboard
  • Coverage Trends
  • File Coverage
  • Credits
  • Open PRs
  • Usage
  • Triggers
  • Actions
  • References
  • Rules
  • CircleCI Integration
  • npm Integration

Documentation

  • Docs
  • Getting Started
  • Setup
  • Triggers
  • Coverage Setup
  • Customization
  • How It Works
  • Auto Merge
  • CircleCI
  • npm

Legal

  • Privacy Policy
  • Terms of Service

Connect

  • GitHub
  • LinkedIn
  • Twitter
  • YouTube
GitAuto Logo© 2026 GitAuto, Inc. All Rights Reserved