Bitbucket Server でプル リクエストを使用する
Pull requests in Bitbucket Data Center and Server provide a quick and easy way for software teams to collaborate on code. A pull request is a dedicated forum for discussing a proposed feature. If there are problems with the changes, teammates can post feedback in the pull request and even tweak the feature by pushing follow-up commits. All of this activity is tracked directly inside of the pull request.
プル リクエストでは、2 つの異なるブランチ間に違いがある必要があります。プル リクエストを作成する際は、変更のマージ先になるブランチを指定します。
ブランチの作成
Pull requests can be used with the Feature Branch Workflow, the Gitflow Workflow, or the Forking Workflow. You can create branches from the Bitbucket UI, from the command line using Git, or from within a connected JIRA Software instance.
プル リクエストを作成する
In their simplest form, pull requests allow a developer to notify team members that they've completed a feature. Once their feature branch is ready, the developer files a pull request via their Bitbucket account. This lets everybody involved know that they need to review the code and merge it into the master
branch.
Review and discuss a pull request
プル リクエストのレビュワーはコードの変更をレビューし、フィードバックを提供します。レビュワー ステータス インジケーターを使用して、変更を承認したこと、または承認するには追加の作業が必要なことをプル リクエストの作成者に伝えます。
プル リクエストをレビューするには、プル リクエストのヘッダー内で [承認] または [対応が必要] を選択します。ステータスを変更するには、ボタンを再びクリックするか、別のボタンをクリックします。
Approving a pull request lets the author know you reviewed their changes and that you feel the work can be merged with the target branch.
Indicating a pull request needs work should accompany a comment to the author letting them know what should change before merging the pull request. Once the author pushes more changes to the pull request, revisit the pull request to review the new iteration. Bitbucket remembers what you've already reviewed and only shows you the changes made since your last visit. At any time you can choose to view the entire effective diff or individual commits and make comments there also.
プル リクエストのレビューおよびディスカッション方法をお読みください。
プル リクエストのマージ
プル リクエストをマージする準備が整い、レビュワーが承認したら、プル リクエスト ビューの右上にある [マージ] をクリックします。プル リクエストのマージは、プロジェクトの書き込み (または管理者) 権限を持っている場合に実行できます。