Overview
A pull request, or PR, is a request to merge changes from one branch into another after review.
When creating a pull request on GitHub, choose:
- Base branch: the branch that should receive the changes, commonly main.
- Compare branch: the branch that contains the proposed changes, such as development.
GitHub compares the branches and displays which files changed, which lines were added, and which lines were removed.
Create the pull request with a title and description that explain the proposed integration. A pull request page then provides sections for:
- Conversation: discussion and review.
- Commits: the commits included in the request.
- Files changed: the exact file-level and line-level differences.
After review, use the merge action and confirm the merge. The pull request is then marked merged and closed, and the base branch contains the accepted changes.