Making and Reviewing Pull Requests in GitHub
Git·1 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: