LESSON 10

Pull Requests

Learning objective: Propose and review changes with pull requests.

Understand

A pull request (PR) proposes merging one branch into another.

On GitHub, you push a branch and open a pull request to propose your changes. Teammates review, comment, and approve before merging. PRs are how professional teams keep quality high.

Analogy: A pull request is like submitting an edit for review before it is published.

See It in Action

The typical PR flow:

1. Push a feature branch
2. Open a Pull Request on GitHub
3. Review + discuss
4. Merge
How it works: Each step adds a checkpoint so changes are reviewed before they reach the main branch.

Try It Yourself

  1. Push a branch to GitHub.
  2. Open a pull request for it.
  3. Read the diff GitHub shows.

Quick Quiz

What is a pull request for?

Challenge

Open a pull request from a feature branch on GitHub.

Success condition: Your pull request shows the proposed changes and can be merged.