Premium lesson

Making and Reviewing Pull Requests in GitHub

Git·2 min read·Jan 1, 2025

In GitHub, a pull request (PR) is a feature that allows developers to propose changes to a codebase, review those changes collaboratively, and eventually merge them into the main or master branch of a project.

Pull requests are commonly used in collaborative development to ensure that code quality is maintained and that contributions are discussed and vetted before being integrated into the project.

Creating a pull request

Before creating a pull request, you should ensure that:

  • The code is well-structured, follows coding standards, and is properly documented.

  • The code doesn't include large refactorings or unrelated changes.

  • The code doesn't break existing functionality and achieves the desired outcome.

  • The code is in sync with the branch you want to merge it into.

Once the branch containing the commits of your completed feature is pushed to the remote repository:

icon light bulb key

Unlock the Build CLI Apps in JavaScript & Node.js module

Learn how to build, integrate, and safeguard scalable CLI tools, scripts, and apps with JavaScript, Node.js, npm, and Git.

You get immediate access to:

  • 45 focused lessons across JavaScript, Node.js, npm, and Git
  • 17 real-world projects with commented solutions
  • Ongoing updates to this bundle
  • Lifetime access to this bundle
Unlock this module