Bot Loop Prevention
Before processing a review comment, GitAuto checks whether it has already replied in that review thread. If it has already responded, it skips processing entirely to prevent infinite bot-to-bot conversation loops.
Why This Exists
If another bot (like a linter bot or review bot) leaves a review comment on a GitAuto PR, GitAuto responds to it. If the other bot then responds to GitAuto's reply, and GitAuto responds again, an infinite loop forms. Each response burns API tokens and credits, and the PR's conversation thread becomes an unreadable wall of bot messages.
How It Works
When GitAuto receives a review comment webhook, it fetches the existing comments in that review thread from the GitHub API. It checks whether any of the existing replies were authored by the GitAuto bot account. If GitAuto has already replied in that thread, the webhook is acknowledged but no processing occurs. This ensures GitAuto responds at most once per review thread, breaking any potential loop.
Related Features
- Webhook Deduplication - prevents duplicate processing of the same webhook event
- Race Condition Prevention - prevents duplicate processing at the check-suite level
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!