Pull Request
A collaboration request asking others to review and merge changes from one branch into another.
What is it?
A pull request is a collaboration request asking others to review and merge changes from one branch into another.
It gives a team a clear place to discuss proposed code changes before they are merged.
A pull request asks a team to review proposed changes.
Think of it like...
Think of a pull request as asking teammates to check your work before it becomes part of the shared project.
What does it do?
A pull request can:
Where is it used?
Pull requests are used in:
Example
A Feature Branch Adds a Save Button
The pull request gives others a place to inspect the change before it joins the main branch.
How it connects
A pull request connects a developer's branch to the shared project through review.
Do Not Confuse
Pull Request ≠ Merge
Pull Request
A request to review and combine changes.
Merge
The action that combines changes from different branches.
Pull Request = Proposal + Review
Merge = Combine Changes
Topic Glossary
| ENGLISH TERM | 中文 | SIMPLE ENGLISH | 中文小白理解 |
|---|---|---|---|
| Pull Request | 合并请求 | A request to review and merge changes from one branch into another. | 请求审查并将一个分支的代码合入另一分支。 |
| Branch | 分支 | An independent line of development. | 独立进行代码开发的一条版本线。 |
| Code Review | 代码审查 | The process of checking proposed code changes. | 检查和讨论准备合入的代码修改的过程。 |
| Merge | 合并 | Combining changes from different branches. | 把不同分支中的代码修改组合起来。 |
| Main | 主分支 | The shared primary branch of a repository. | 代码仓库中大家共享的主要分支。 |
| Commit | 提交 | A recorded set of code changes. | 一次被记录下来的代码修改。 |
| Repository | 代码仓库 | A managed location for source code and its history. | 集中保存源代码及其版本历史的位置。 |
| Approval | 批准 | A review decision allowing proposed changes to proceed. | 表示代码修改通过审查、可以继续推进的决定。 |
| Check | 检查 | An automated or manual validation of proposed changes. | 对准备合入的修改进行自动或人工验证。 |
| Diff | 差异 | The changes between two versions of code. | 两个代码版本之间发生变化的部分。 |
| Source Branch | 源分支 | The branch containing the proposed changes. | 包含准备提交审查的代码修改的分支。 |
| Target Branch | 目标分支 | The branch that may receive the proposed changes. | 可能接收这些代码修改的目标分支。 |
What to Remember
A pull request proposes changes from one branch to another.
Code review happens before the changes are merged.
A pull request connects branch work with the shared project.
A pull request makes proposed code changes visible, reviewable, and ready to merge.