プル リクエストを作成して変更をマージする

このページの内容

お困りですか?

アトラシアン コミュニティをご利用ください。

コミュニティに質問

  1. Create a repository and add a teammate
  2. Clone and make a change on a new branch
  3. プル リクエストを作成して変更をマージする

To alert your teammates to your updates and get their approval, your next step is to create a pull request. In addition to a place for code review, a pull request shows a comparison of your changes against the original repository (also known as a diff) and provides an easy way to merge code when ready.

Step 1. Create the pull request

You need a branch to create a pull request. Good thing you already have one.

  1. From your repository, click + in the global sidebar. Then, click Create a pull request under Get to work.
    Bitbucket displays the request form.
  2. Complete the form:
    1. You've already got an automatic Title, your last commit message.
    2. Add a Description if you'd like.
    3. From the Reviewers field, add your team member breezycloud as a reviewer.
    When you're done, the form will look something like this:
  3. [プル リクエストの作成] をクリックします。

Bitbucket opens the pull request and your reviewer receives an email notification with details of the pull request for them to review.

Step 2. Merge your pull request

Not so fast! You may have noticed the Merge button at the top. Before you click it, you need to wait for an approval of your changes. In addition to the email notification your teammates receive, they'll also see the pull request appear under Pull requests to review on the Your work dashboard.

From the pull request, the reviewer can view the diff and add comments to start a discussion before clicking the Approve button.

When someone approves your pull request, you'll get an email notification. Once you've got the approvals you need (in this case just one!), you can merge. From the pull request, click Merge. And that's it! If you want to see what it looks like when your branch merges with the main branch, click Commits to see the commit tree.

最終更新日 2018 年 7 月 2 日

この内容はお役に立ちましたか?

はい
いいえ
この記事についてのフィードバックを送信する
Powered by Confluence and Scroll Viewport.