Pull requests
A pull request proposes merging one branch into another: discussion, commits, changed files, review and a «Merge» button. The only way into a protected branch.
Why#
Even in a personal repository a pull request is a pause before changing the main version: you see exactly what changes and have a place to write «why». In a team it is a review of someone's change before it becomes shared.
In this section
-
Creating a pull request
A pull request is opened from the branch compare page: a title, a description, and below them the commits and files that go into the merge.
-
Reviewing a pull request
A review checks someone's change: look at the files line by line, leave comments, approve or ask for changes.
-
Merging a pull request
The «Merge pull request» button merges the branch into the target; linked issues close, the event goes into the feed, and the branch can be deleted.