GBot AI logoGBot AI

Review your own change before you submit it

Published by GBot AI on 20 October 2026. Updated 30 November 2026.

The fastest way to get better feedback from teachers and teammates is to fix the obvious problems yourself first. A self-review takes ten minutes and catches most of what a reviewer would point out. GBot AI can act as a patient second reader, but the habit starts with you.

Look at the change, not the whole file

Use your editor’s diff view or git diff to see only the lines you changed. Reviewers read the change, so you should too. Large changes are hard to review for everyone. If yours touches many unrelated things, consider splitting it.

Run through a short checklist

Does it do what the task asked, and nothing extra? Did you leave debug prints, commented-out code, or temporary values? What happens with empty input, a missing value, or a very large value? Are the names clear to someone who did not write the code?

If there are tests, do they pass, and did you add one for the new behaviour? A change without any test is a change you are asking the reviewer to trust.

Ask for a second opinion

Paste the diff into GBot AI with one sentence describing what the change should do. Ask for problems in order of importance and ask it to quote the line for each one. Then, for each comment, decide whether you agree, and if you are not sure, ask why.

Comments you do not understand are the most valuable ones. They point at something you have not learned yet.

Know when a person must review it

Anything involving passwords, payments, permissions, or other people’s data needs review by someone responsible for that system. An assistant finding nothing is not the same as a change being safe.

Example: two problems hiding in a three-line change

This change adds quantity to an order total and a discount for large orders. It looks finished. Running the checklist on the diff alone finds two problems.

 function orderTotal(items) {
-  const total = items.reduce((sum, item) => sum + item.price, 0);
+  const total = items.reduce((sum, item) => sum + item.price * item.qty, 0);
+  if (total > 100) discount = 0.1;
   return total;
 }
  1. Inputs: older orders saved before this change have no qty field. item.price * undefined is NaN, and NaN makes the whole total NaN. Default it, for example (item.qty ?? 1).
  2. Names and scope: discount is assigned but never declared. In a module or strict mode that throws ReferenceError; in older scripts it silently creates a global variable.
  3. Does it do what the task asked? The discount is calculated but never applied to the returned total, so customers would never see it.
  4. Tests: add one case for an item without qty and one for an order just above 100, then run them before asking anyone to review.

Reading only the changed lines, with the questions “what new input can reach this?” and “where does this value go?”, catches most problems before a reviewer does.

Example prompt

This change should let users edit their profile name but not their email. Here is my diff. List problems from most to least important, quote the line, and explain each one simply.

Questions

Can GBot AI review a GitHub pull request directly?

No. Copy the diff or upload the changed files. It does not connect to GitHub.

Is it cheating to use an AI for review on coursework?

That depends on your course rules, so check them. Using feedback to understand and fix your own work is different from submitting work you did not write.

Start with GBot AI