liveBook · Manning

Pull request

As explained in "Looks Good to Me"

A pull request, also called a merge request, is a proposal to integrate code changes into a target codebase or branch while supporting review, discussion, and approval.

A pull request (PR), also called a merge request (MR), proposes integrating code changes into a target branch or repository. It gives reviewers a place to inspect, discuss, comment on, and approve the changes before they are merged. section 2.2.1 section 1.6

A PR is one part of a broader code review: changed code, reviewers, a reviewing mechanism, and a signoff condition. In a PR-centered workflow, opening the PR signals that review is pending, comments carry feedback and discussion, and approval completes the review. section 2.2.1 section 2.2.2

Prepare a PR so that reviewers can understand and evaluate it efficiently:

  • Write a clear, concise title and a detailed description containing the context and justification for the change. section 2.5 section 8.2
  • Use labels, review states, documentation links, and other agreed information to make the change easy to classify and follow. section 2.5 section 3.4.1
  • Break work into manageable, isolated changes; guidance favors chunks of no more than 500 lines that can receive detailed review within about 30 minutes. section 2.5 section 9.2.2
  • Agree in advance which issues block approval and which remain nonblocking, then revise those rules as the team encounters new cases. section 3.3.3 section 3.4.1

A missed review

A developer merged an invoice-parsing feature containing incorrect fee calculations and difficult-to-understand code. Without a reviewable change, shared context, and approval before integration, teammates could not reliably diagnose the defect before a CEO demonstration. section 1.0

Figure 2.3 A pull request-based code review workflow
figure

Trace the PR-based review workflow from opening a pull request through pending review, feedback, and approval. section 2.2.2

How "Looks Good to Me" covers it

How deep it goes
Explains the workflow, preparation practices, size guidance, approval rules, and process refinement, while deferring tool-specific implementation details.
Examples
Uses an invoice-parser failure, PR templates, automated checks, labels, review states, and smaller PRs as concrete teaching examples.
What it assumes
Assumes changed code and reviewers, while defining the review mechanism, signoff condition, author duties, and team approval decisions.
What you can do after
Operate a PR-centered review workflow and prepare changes that reviewers can understand, discuss, evaluate, and approve.
How it connects
Connects pull requests with code review, merge requests, Git-based version control, PR templates, approval criteria, and pair programming.

Also explained in

Compare how 6 books explain pull request →

Related concepts

This explainer was generated by Manning's knowledge graph from the text of "Looks Good to Me". The section links point to the parts of the book it draws on.