AI Learning Hub › Learn AI › Self-Paced Courses › GitHub Without the Jargon › Review Before You Merge

Module 6 ยท Beginner

Review Before You Merge

Read a diff, tell a comment from a formal review and a review from a status check, notice missing evidence, then merge and verify.

By the end

  • Inspect the purpose of a pull request before merging
  • Read the Files changed diff
  • Distinguish a comment from a formal review
  • Distinguish a review from a status check
  • Explain what “No conflicts” or “Able to merge” does and does not mean
  • Identify evidence that is present and evidence that is missing
  • Merge a reviewed practice pull request
  • Verify the change on the base branch after merging

GitHub says it can merge. What should you look at before deciding?

Pull request #1 is open, and the interface is fairly encouraging about it. Here is everything it was telling us:

Some of that is reassuring, some of it is neutral, and one item sounds much more reassuring than it is. None of it, by itself, answers the question that matters. A pull request collects evidence without making the decision for you. Mergeability tells you whether GitHub can combine the branches; review helps you decide whether you want to.

Three words to learn

Review

A deliberate examination of proposed changes and supporting information before deciding what should happen next.

Check

An automated status or validation reported to GitHub for a commit or pull request.

Merge

Combining the proposed changes from one branch into the pull request’s base branch.

One of these has two meanings, and the difference matters in this module. The definition above describes review as an activity — the looking. GitHub also uses review for a formal object you submit, with an outcome of Comment, Approve, or Request changes. You can do the activity without creating the object, which is exactly what happens below. Both meanings are correct; they are just not the same thing.

Still not needed: merge commit, squash, rebase, CI, continuous integration, required status check, branch protection, ruleset, code owner.

Review starts before the diff

Before looking at a single changed line, read what the proposal claims to do. Ours said:

pull request #1 — title and description
Add review note

This practice pull request proposes
adding the Review note section
to README.md.

It is a disposable change for
GitHub Without the Jargon.

So the stated purpose is: add one Review note section to the README. That sentence is now a test the diff has to pass. You cannot tell whether a change fits the proposal unless you know what the proposal was.

This is why Module 5 spent time on titles and descriptions. Far from administrative decoration, they are the thing a reviewer measures the diff against.

Now inspect what would actually change

The Files changed tab is where the proposal stops being a claim. GitHub’s own beginner guidance puts it plainly: this tab “shows a diff of everything your branch adds or modifies.”

On our pull request it showed one file, README.md, and this:

the whole proposed change
+
+## Review note
+
+This change is on a branch for review.

Three questions, in this order:

Expected?

Does this match the title and description?

Yes — a Review note section, which is what was promised.

Complete?

Is the intended change actually all there?

Yes — heading and sentence both present.

Extra?

Did anything else change?

No — no other files, no other edits.

Review the difference rather than merely the promise.

This diff is deliberately trivial. Four added lines of plain English is about as easy as inspection ever gets. A real pull request can touch forty files, and the three questions still apply — they just take longer to answer.

The Files changed tab of an open pull request on GitHub. A row of tabs reads Conversation 1, Commits 1, Checks 0, and Files changed 1, with a green plus 4 and a small bar chart at the right. Below, a toolbar shows an All commits dropdown, a counter reading 0 of 1 viewed, a green Submit review button, and a settings gear. A left panel headed Filter files lists one entry, README dot md. The diff panel on the right is headed README dot md with a plus 4 indicator and a Viewed checkbox. The diff shows a hunk header reading at at minus 5 comma 3 plus 5 comma 7, three unchanged lines numbered 5 to 7 containing a Status heading and the text Current status colon Ready for review, then four added lines numbered 8 to 11 highlighted in green, each marked with a plus sign, containing a blank line, the heading Review note, another blank line, and the sentence This change is on a branch for review.
The whole proposal, as a difference. Observed on GitHub on 21 September 2026, in the private practice repository, before merging. Cropped below the account details. Open full-size image: the Files changed diff (opens in a new tab)

Observed on GitHub

Verified: 21 September 2026.

This is the disposable private practice repository, showing pull request #1 at the moment of review — open, unmerged, with the diff on screen and nothing submitted. The counter reading 0 / 1 viewed and the unticked Viewed checkbox are review-progress controls; neither was used.

The crop stops below the title and author line, which carries the account’s identity. GitHub’s labels and layout may change, and what appears in this toolbar depends on your permissions on the repository.

One file changed means one file changed

The interface reports 1 file changed and +4 / −0. Both are true, and both are narrower than they feel.

What it tells you

The diff contains changes to one file, adding four lines and removing none.

What it does not tell you

  • that the change is correct;
  • that this is the right file;
  • that nothing outside GitHub is affected;
  • that the change has been tested; or
  • that a human approved it.

A count describes the shape of a diff. Reading the diff is what tells you about its content.

Check how the proposal got here

The Commits tab shows, in GitHub’s words, “how the branch changed over time.” Ours lists exactly one:

Commits 1
Add review note   Verified  7554b5d

One commit corresponding cleanly to one proposed change — the simplest possible case. On a larger proposal the commit list becomes genuinely useful: it can show whether the work arrived in coherent steps or as one undifferentiated lump, and whether anything unrelated crept in along the way.

GitHub gives each commit an identifier, shown here as 7554b5d. You still do not need it.

Something says “review completed”

Here is where this particular pull request became more interesting than planned.

Shortly after #1 opened, an automated tool already connected to the account — chatgpt-codex-connector, labeled Bot — posted a comment headed Codex Review Summary. Its table reported:

the automated comment’s table
Review          Code Review
Status          Completed
Commit          7554b5d
Review trigger  PR opened

A thumbs-up reaction appeared on the pull request too. So: something called a code review ran, and says it completed. Two questions follow, and the answers are both observed rather than assumed.

Did GitHub record it as a formal review?

No.

The sidebar still read Reviewers — No reviews, before the merge and after it.

Did GitHub record it as a status check?

No.

The Checks tab still read 0.

A message that says “review completed” is not automatically a GitHub review or a passing check. Look at what GitHub actually recorded.

The tool is not lying to you

It would be easy to read the previous section as catching something out. It is not, and the distinction is worth getting right.

The comment accurately reports activity that integration performed in its own workflow. It ran something it calls a code review, and that run completed. Nothing about the message is false.

The teaching point is classification, not honesty. The report arrived as a Conversation comment. GitHub did not record it as a formal pull-request review, and did not record it as a status check. Different systems report evidence through different channels, and the channel tells you how the platform is treating it. Read the evidence for what it is rather than for what its heading sounds like.

Three things that can look similar

Conversation comment

A message in the pull request’s discussion and timeline.

In our pull request, at this point: the Codex Review Summary appears here.

Formal review

A review submission recording Comment, Approve, or Request changes, where the reviewer and repository permit it.

In our pull request, at this point: the sidebar says No reviews.

Check

An automated status reported for a commit or pull request.

In our pull request, at this point: Checks 0.

Comments, reviews, and checks can all provide information, and GitHub records them differently.

None of the three is automatically more trustworthy than the others. A thoughtful comment from someone who knows the project can be worth more than a green check that only proves the build compiled. The point is to know which one you are looking at.

What the review form actually offers

Opening the Submit review control — without submitting anything — showed a panel headed Finish your review, with a comment box and three outcomes. Two of them were grayed out, with GitHub explaining why:

Comment
Available. “Submit general feedback without explicit approval.”
Approve
Unavailable. “Pull request authors can’t approve their own pull requests.”
Request changes
Unavailable. “Pull request authors can’t request changes on their own pull requests.”

Two different facts are worth separating here. GitHub supports all three outcomes — that is the platform. The author of this particular pull request can only use one of them — that is us, in this repository, on our own proposal.

Nothing was submitted. The panel was opened to see what it offered and then dismissed, so the pull request went into the merge with No reviews still recorded — which is the honest state and the one this module reports.

Zero checks is not a passing grade

GitHub’s documentation describes status checks as showing “whether commits meet the conditions set for a repository,” usually created by “external systems, such as continuous integration builds, tests, code scanning, or deployment checks.” Where a repository requires them, “they must pass before the pull request can be merged.”

Our practice repository has none of that. Nobody configured any checks, so none ran, so the tab reads 0.

No check result and a passing check result are different pieces of evidence.

An empty Checks tab is the absence of a signal. A green one is the presence of a signal. Treating the first as the second is one of the easier mistakes to make when a page looks calm.

Mergeable answers a narrower question

The merge box read:

the merge box, before merging
No conflicts with base branch
Merging can be performed automatically.

That is a statement about mechanics. GitHub can combine these two sets of changes without needing anyone to decide between competing edits to the same lines.

It does not establish purpose, correctness, completeness, review, testing, or policy approval.

Can merge is a technical state. Should merge is a decision.

In many repositories that decision is not one person’s to make alone — rules can require approvals or passing checks before the button becomes available at all. In this disposable practice repository there are no such rules, and at this point in the exercise the decision was entirely ours.

What evidence exists here?

Everything we have, laid out honestly:

Purpose
Title and description — a clear, tiny proposal.
Difference
Files changed — one README addition, +4 / −0.
Commit history
Commits 1 — Add review note.
Formal reviews
None.
Checks
0.
Automated discussion
A Codex Review Summary comment in the Conversation.
Mergeability
No conflict preventing an automatic merge.

That set is not “complete” in any universal sense. It is simply what this repository currently provides. Noticing the gaps is part of the review — two of the seven rows are absences, and they stay absences no matter how green the button is.

What evidence would matter for a larger change?

Depending on what a change could affect, the evidence worth having might include tests, an accessibility review, a build or deployment preview, security findings, subject-matter review from someone who knows the domain, required approvals, or a policy sign-off. The evidence you need should match what the change could affect.

There is no score to calculate and no checklist that fits every change. A typo fix and a change to how a system handles personal data are not owed the same scrutiny, and pretending otherwise just produces box-ticking.

You can review your own work without pretending to be a second person

This is a disposable practice repository, and at the time of this review no second human reviewer participated. This course did not invent one.

GitHub’s own beginner guidance is that reviewing before merging “helps you catch bugs, spot missing error handling, and improve readability while the work is still fresh,” and that even alone, “a deliberate review builds a habit.” That is available to anyone: read the purpose, read the diff, read the commits, notice what evidence exists.

And the limit is real:

Self-review is a habit worth having, and it is not independent review.

You cannot be surprised by your own assumptions. GitHub agrees strongly enough to enforce it — which is why the Approve option was grayed out above.

The merge decision

Put together, immediately before merging:

What we had

  • Goal: add a Review note.
  • Diff: only that, +4 / −0.
  • Files: 1.
  • Conflicts: none.

What we did not have

  • Formal reviews: 0.
  • Checks: 0.
  • Independent reviewer: none.
  • Anything at stake: none.

For this exercise that is enough, and the last item is why. The repository is disposable and private, nothing depends on it, and at this point in the exercise one person was deciding.

Do not carry that judgment across. The same evidence set — no reviews, no checks, one person deciding — would not be sufficient for a shared repository, a published site, or anything a colleague relies on. What made it sufficient here was the stakes, not the checklist.

What merging actually did

The observed flow had two steps, which is worth knowing before you start it.

  1. Merge pull request. The green button in the merge box. It does not merge — it opens a confirmation.
  2. A commit message appears. Pre-filled: Merge pull request #1 from …/review-note, with the branch commit’s message as an extended description, and a line naming the email the commit will be authored by. Both fields were left as GitHub wrote them.
  3. Confirm merge. Beside a Cancel button. This is the step that changes the repository.

GitHub supports multiple ways of combining branch history, offered behind the dropdown next to that button. This course used the repository’s current primary merge action and is deferring those history choices.

Verify the destination, not just the success message

After confirming, GitHub said Pull request successfully merged and closed, and the badge turned purple: Merged. Good news, and not evidence.

The evidence is what happened to main:

main before

  • 2 commits;
  • latest Add status section to README; and
  • no Review note.

main after

  • 4 commits;
  • latest Merge pull request #1 from …/review-note; and
  • Review note present in the README.

Two commits arrived, not one: the branch’s own Add review note, and a new merge commit recording the combination itself. That is what the primary merge action does, and it is why the count went up by two rather than one. Still one file in the repository, and no unexpected changes. The strongest evidence that the proposed change reached main is the resulting state of main, not a green “Merged” message.

The proposal can finish while the branch remains

GitHub offered a Delete branch button the moment the merge completed, with the words “the review-note branch can be safely deleted.” We did not press it.

So review-note is still there, still 3 commits, still carrying its own Add review note as its latest — the merge added nothing to it. Its banner simply changed from 1 commit ahead of main to 1 commit behind main, because main has since gained the merge commit.

Merging a pull request does not require the source branch to disappear at the same moment.

Deleting a merged branch is ordinary tidying and most projects do it. The point here is only that GitHub made it a separate button, and the separate button is a separate decision.

Comment, review, check, or repository state?

Four things we saw. What does each actually tell you?

four pieces of evidence
A. Codex Review Summary
   in the Conversation

B. Reviewers: No reviews

C. Checks: 0

D. README on main after merge
One possible review

A — automated Conversation evidence from an integration. A tool reporting on its own activity, in the discussion. Real information; not a GitHub review and not a check.

B — formal GitHub review state: none recorded. An absence, and an accurate one. Nobody submitted a review, and the author could not have approved it anyway.

C — status-check state: no checks reported. Also an absence. Not a pass.

D — repository state: direct evidence of what main contains. The only item of the four that shows the actual result rather than something said about it.

Different evidence answers different questions.

What does “Able to merge” actually tell you?

pick one
A. The change has been reviewed
   and approved.

B. GitHub currently sees no merge
   conflict preventing automatic
   combination.

C. All tests passed.

D. The change is correct.
One possible answer

B. And only B.

A was visibly false on our pull request: the sidebar said No reviews the whole time. C was visibly false too: Checks 0 means no test reported anything, not that tests passed. D is not something GitHub is in a position to know about any change.

Possible to merge is not a recommendation to merge.

The button is green. What comes first?

pick one
A. Merge because GitHub allows it.

B. Read only the automated summary.

C. Check the purpose, diff, commits,
   and available review and check
   evidence.

D. Assume no conflicts means
   no problems.
One possible answer

C.

A mistakes permission for judgment. B trusts a heading over the thing it summarizes — and on this pull request, the summary came from a tool whose output GitHub did not record as a review. D confuses a mechanical fact with a substantive one.

How deeply you look should depend on the change. This README edit was four lines of plain English, and inspecting it properly took under a minute. That is the exception, not the standard. The habit worth keeping is the order — purpose, difference, history, evidence, then decision — rather than any fixed amount of effort.

What to notice

Before the merge:

Proposal

What someone wants to change.

Difference

What would actually change.

Evidence

Reviews, checks, comments, commits — each answering something different.

Decision

A separate action, taken by someone.

And after it: verification. Inspect main to confirm the intended result actually arrived.

Review before the decision. Verify after the change.

Before you continue

You are ready for Module 7 if you can: