pull request

A request on a hosting service such as GitHub to merge one branch into another, with a page for review, discussion and automated checks.

In more detail

Pull requests are a feature of hosting services such as GitHub, not of Git itself; GitLab calls them merge requests. You push a branch, open the request, reviewers comment on the diff against the merge base, and checks run; when it is approved, the branch is merged. Keeping each one small and about one thing makes it easier to review.

Examples

In AWS: A proposal to merge a set of changes into a repository, where teammates review and discuss them first.
Design system pull requests run token builds, axe-core audits and visual comparisons, and add a changeset describing the version bump.
gh pr create --title "Add a new button" --body "Closes #42"
A reviewer asking "how many distinct values can this label have?" on the pull request prevents cardinality explosions.
The course puts a three-question threat model in the pull request description, and runs security gates on pull requests so new high-confidence findings fail before merge.
on:
  pull_request:
In Terraform: For infrastructure as code the pull request is where a change is reviewed before anything is applied. Pipelines usually run format checks, validation, tests and a plan on every pull request and post the results. Some teams even create a short-lived environment per pull request and destroy it afterwards.
In this course: Make gate results visible in the pull request so the reviewer spends attention on the change rather than asking whether the checks ran. Reviewers comment on its diff, and required checks must pass before it can be merged.

Related terms

Taught in

References

Certification courses