VS Code での Bitbucket プル リクエスト
Within the Atlassian sidebar, the VS Code extension provides a tree view displaying the Bitbucket pull requests, pipelines, and issues of each repository connected to your current Bitbucket account.
The tree views (explorers) can be disabled/enabled from Atlassian Settings. You can also configure how often the tree views auto-refresh and the frequency of new pull request notifications. You can also manually refresh the tree views at any time by clicking the refresh icon
on each tree view's title bar.VS Code から Bitbucket のプル リクエストを表示および変更する
Select the Atlassian logo on the leftmost sidebar in VS Code. This opens the Atlassian sidebar which displays any Jira issues and Bitbucket pull requests, pipelines, and issues connected to your current Bitbucket or Jira account. These panels should be displayed by default; if not, click on the title bar of each one to open and display issues, pull requests or pipelines.
By default, the Atlassian sidebar view shows all open pull requests, but you can change the filter to display only the pull requests you’ve created or the pull requests waiting for your review.
表示または変更するプル リクエストの下の [Details] をクリックします。
プル リクエストの詳細画面には、対象のプル リクエストの詳細だけでなく、プル リクエストへのコメント、承認、チェックアウト、およびマージ機能も表示されます。
リンクされているプル リクエスト パス - 左上のリンクされているプル リクエスト パスをクリックすると、プル リクエストがブラウザの Bitbucket で開かれます。
承認 - 右上の [Approve] をクリックすると、プル リクエストがすぐに承認されます。
マージ -右上の [Merge] をクリックすると、プル リクエストがすぐにマージされます。
Bitbucket で開く - 右上の Bitbucket ロゴをクリックすると、プル リクエストがブラウザの Bitbucket で開かれます
ソース ブランチのチェックアウト - [Approve] ボタン配下の [Checkout source branch] をクリックすると、ローカル マシンででプル リクエストのブランチをチェックアウトします。
ビルド ステータス - ビルド ステータス アイコンをクリックして最新のビルドの詳細を取得します。
関連する課題 - このプル リクエストに関連する課題の一覧です。クリックすると、Issue Details 画面が開きます。
コミット - このプル リクエストへのコミットの一覧。クリックすると、ブラウザの Bitbucket を使用してコミットが開かれます。
コメント - コメントを入力し、[Save] をクリックして、プル リクエストにコメントを追加します。
VS Code から Bitbucket Cloud のプル リクエストを作成する
コマンド パレットから
- Open the command palette by executing the following Atlassian: Open Settings command: Command + Shift + P (on Mac) or Ctrl + Shift + P (on PC) and search for Create pull request.
- From the command palette: choose the Atlassian: Create Pull Request command.
- [Create pull request] フォームの任意のフィールドを入力または更新します。
- 左下の [Create pull request] ボタンをクリックします。
Bitbucket のプル リクエスト ツリーから
- 左端のナビゲーション バーにあるアトラシアンのロゴをクリックします。
- Click on the BITBUCKET PULL REQUESTS heading on the Atlassian status bar.
- [+] をクリックして、新しい [Create Pull Request] フォームを開きます。
- [Create Pull Request] フォームの任意のフィールドを入力または更新します。
- 左下の [Create pull request] ボタンをクリックします。
ソースコード エディターの任意の行を右クリックしてコンテキスト メニューを開き、[Create Pull Request] を選択することもできます。
プル リクエストが作成されると、VS Code で [Pull Request Details] 画面が開きます。また、リポジトリをワークスペースに接続しているすべてのユーザーの VS Code に通知も表示されます。
プル リクエストのコンテキスト メニュー
拡張機能は、Bitbucket のプル リクエストに関連するいくつかの便利な右クリック コンテキスト メニューを提供します。
Copy Pull Request Url to Clipboard - 簡単に共有できるように、プル リクエストの URL をクリップボードにコピーします。
プル リクエストの作成 - プル リクエストの作成画面が開かれます
チェンジセットを開く - Bitbucket のチェンジセットがブラウザで開かれます
Bitbucket で開く - Bitbucket のプル リクエストがブラウザで開かれます
プル リクエストの表示: プル リクエストの詳細画面が開かれます