Get started

What is a pull request?

A pull request (PR) is a way to ask, “Can we add my change?” In software, it lets someone show a change to a project so the team can look it over before adding it.

Can we add my dragon?

Imagine you and a friend drew a castle. Now you draw a purple dragon on a little piece of paper. You hold it over the tallest tower and ask, “Can we add my dragon?” That question is like opening a pull request.

Your friend takes a look. “Yes! Let’s give it wings!” You draw two wings and show your friend again. That’s a review.

You both like it, so you glue the dragon onto the castle. Now it’s part of the picture you share. In code, that last step is called a merge.

Two friends give a purple dragon wings and add it to their castle drawing.
Open the dragon infographic full size

What does that look like in code?

Imagine a sign-in button works when you click it, but nothing happens when you press Enter. Here’s how a team could fix it.

  1. Make the fix. A developer changes the button on a branch, a separate line of work. The shared version still works as it did before.
  2. Open a pull request. The developer shows which lines changed, explains the keyboard fix, and asks to merge it into the shared branch, often called main.
  3. Review and test. A teammate asks for a test that presses Enter. The developer adds it to the same branch. The PR updates, and automated checks run on the new code.
  4. Merge. When the team is ready, it merges the PR. The fix is now in the shared code. People using the app get the fix when that code is released.
See the sign-in fix as a branch diagram

Get your PR fleet under control

Connect GitHub, see every open pull request across your repositories, and start merging the ready ones. The Free plan has no monthly fee.