Pull request

A pull request (PR) is a request, on a platform like GitHub, to merge the changes from a branch into the project's main version. The PR shows the differences and allows comments and automated checks before merging. Claude Code can create a pull request with a full description, usually through the gh tool, and can review existing PRs.

A request to add your changes to the project’s main version, so that others check them first. In short: PR.

You’ll also find it as: pull requests, PR, PRs

How it shows up in Claude Code

The documentation says you can simply ask “create a pr for my changes”, and Claude does the rest: it summarises the changes, writes the description and opens the PR. It does this with the GitHub CLI (gh), so it's worth installing. Claude Code then links the conversation to the PR it created, and later you can find it again with claude --from-pr followed by the PR number.

PRs are also where Claude can work on its own. With GitHub Actions, you write @claude in a PR comment, and Claude reads the code, makes changes and replies right there. The documentation recommends one important habit: review the generated PR before submitting it, and ask Claude to point out the risks.

Example

When you've finished working on a branch:

create a PR with a description of the changes and a testing checklist

Claude pushes the branch and opens the PR. You read it on GitHub, go through the checklist and only then merge it.

Common mistakes

  • Merging a PR without looking at it. Review is the whole point of a pull request.
  • One PR with ten unrelated things. A small one with a single idea is easy to check.
  • Missing gh, so Claude can't open the PR from the terminal.
  • Letting the automated checks fail and merging anyway.

Related terms and where you learn it

A PR starts from a branch with commits and lives on GitHub. In the terminal you need the gh CLI, and the checking step is called a review.

You create one with Claude in the lesson “8. How do you use Claude with git?”, in module 04 · The working method, step by step, and set up automatic review on every PR in module 10 · Claude on autopilot.

Source: Claude Code documentation: Common workflows

How it appears in the course

The last message of the cycle goes like this: “make a commit and open a PR with a description”.

What are the four basic steps? · Module 04, The working method, step by step

Claude knows how to do all the work with git on its own: search through the history, resolve conflicts, make commits and PRs.

How do you use Claude with git? · Module 04, The working method, step by step

Treat it like code. CLAUDE.md lives in git, and changes go through a PR (pull request: a proposed change that a colleague reviews before it’s accepted).

What does a good CLAUDE.md look like? · Module 02, CLAUDE.md: your project’s memory

Learn Claude Code from zero, in plain English

12 modules with 1–2 minute lessons, which you can also do on your phone. The first two modules are free.