GitLab Well Architected
Cookbook navigation
Prompts / Review MR for Logical Errors

Review MR for Logical Errors

Code ReviewCode-ReviewQuality-AssuranceReviewerTestingVerifyBeginner

Catch logical errors and edge cases that syntax checkers miss. Go beyond linting to find real bugs.

For GitLab Duo

prompt

Review this MR for logical errors, edge cases, and potential bugs: [MR URL or paste code]

Use the prompt

Include the intended behavior alongside the diff. Existing tests and an example input help Duo reason about whether a suspicious path is actually a bug.