diff --git a/git-workflows-and-tutorials/images/pull-request-bitbucket.png b/git-workflows-and-tutorials/images/pull-request-bitbucket.png new file mode 100644 index 0000000..c250ed3 Binary files /dev/null and b/git-workflows-and-tutorials/images/pull-request-bitbucket.png differ diff --git a/git-workflows-and-tutorials/images/pull-request-overview.png b/git-workflows-and-tutorials/images/pull-request-overview.png new file mode 100644 index 0000000..c82763d Binary files /dev/null and b/git-workflows-and-tutorials/images/pull-request-overview.png differ diff --git a/git-workflows-and-tutorials/pull-request.md b/git-workflows-and-tutorials/pull-request.md index 319069e..3b8bb12 100644 --- a/git-workflows-and-tutorials/pull-request.md +++ b/git-workflows-and-tutorials/pull-request.md @@ -1,2 +1,27 @@ -`Pull Requests` +`Pull Request`工作流 ======================= + +`Pull Requests`是`Bitbucket`上方便开发者之间协作的功能。 +提供了一个用户友好的`Web`界面,在集成提交的变更到正式项目前可以对变更进行讨论。 + +![](images/pull-request-bitbucket.png) + +开发者向团队成员通知功能开发已经完成,`Pull Requests`是最简单的用法。 +开发者完成功能开发后,通过`Bitbucket`账号发起一个`Pull Request`。 +这样让涉及这个功能的所有人知道要去做`Code Review`和合并到`master`分支。 + +但是,`Pull Request`远不止一个简单的通知,而是一个专门为提交的功能的论坛。 +如果变更有任何问题,团队成员反馈在`Pull Request`中,甚至`push`提交微调功能。 +在`Pull Request`中,所有的这些活动都直接跟踪了。 + +![](images/pull-request-overview.png) + +相比其它的协作模型,这种分享提交的形式有助于打造一个更流畅的工作流。 +`SVN`和`Git`都能通过一个简单的脚本收到通知邮件;但是,讨论变更时,开发者通常只能去回复邮件。 +这样做会变得杂乱,尤其还要涉及后面的几个提交时。 +`Pull Requests`把所有相关功能整合到一个和`Bitbucket`仓库界面集成的用户友好`Web`界面中。 + + +----------------- + +[« `Forking`工作流](workflow-forking.md)                            [概述 »](README.md)