Glossary termCollaboration workflow

Pull Request

Also known as: PR, Merge request

Proposal to merge a set of code changes from one branch or fork into another, used as the focal point for review and discussion.

A pull request is a request to incorporate a set of changes into a project. A contributor makes commits on a separate branch or in a personal fork of a repository and then opens a pull request asking the maintainers to merge those changes into the main line of development. The pull request shows the differences line by line, provides a space for comments and discussion and typically triggers automated checks. GitLab uses the name merge request for the same concept, and the abbreviation PR is common in everyday use.

The name comes from distributed version control, in which one developer asks another to pull commits from their repository; Git includes a request-pull command that generates such a message, and Linux kernel development has long relied on emailed requests and patches. GitHub, launched in 2008, turned the pull request into a web-based workflow with inline comments, approvals and status checks, a model that spread across hosting platforms such as GitLab and Codeberg. A typical team flow is to open a pull request, run continuous integration tests, receive code review and merge once approved.

Pull requests lowered the barrier to contributing to open source projects, since anyone can fork a repository and propose changes without having commit access, which helped drive the growth of collaborative development on hosting platforms. They also create a lasting record of why each change was made. Common problems include very large pull requests that are hard to review, long waits for review that discourage contributors and maintainer burnout from heavy volumes of submissions. Many projects publish contribution guidelines and templates to keep requests focused and complete.

Key points

  • A pull request proposes merging commits from one branch or fork into another and invites review.
  • GitLab calls the same mechanism a merge request.
  • GitHub turned pull requests into a web-based review workflow with comments, approvals and automated checks.
  • Small, focused pull requests are easier to review and less likely to cause merge conflicts.

Related entries

Glossary term

Version Control

ProgrammingDevOps

System that records changes to files over time so that people can track history, revert mistakes and collaborate on the same codebase.

Glossary term

Code Review

Programming

Practice in which developers examine each other's source code changes to find defects, share knowledge and keep the codebase consistent.

Technology

Git

ProgrammingDevOpsFOSS

Free and open-source distributed version control system created by Linus Torvalds in 2005, used to track changes in source code.

Technology

GitHub

ProgrammingFOSS

Web platform owned by Microsoft for hosting Git repositories and collaborating on software through pull requests, issues and automation.

Technology

GitLab

ProgrammingDevOps

DevOps platform for hosting Git repositories with built-in CI/CD, issue tracking and security tools, available as a service or self-managed.

Glossary term

Merge Conflict

Programming

Situation in version control where changes from different branches touch the same part of a file and cannot be combined automatically.

Glossary term

Continuous Integration

DevOpsProgramming

Development practice in which programmers merge changes into a shared repository frequently, with each change verified by an automated build and tests.

Glossary term

Person or team responsible for reviewing contributions, managing releases and guiding the long-term health of a software project or package.

Featured in guides