はじめに
Feature preview1(早期アクセスリリース)として、プルリクエストの変更したファイルをツリー形式で閲覧できる機能(Pull Request File Tree)がリリースされてました。
使ってみたら良かったので備忘録兼ねて、以下詳細を記載します。
Pull Request File Treeについて
以下の様に、プルリクエストのファイル差分を開くと画面左側に変更したファイルがツリー形式で表示されます。
※ なお、変更したファイルが1ファイルの時はツリー形式で表示されないようです。
公式の説明)
Navigate between changed files more quickly and get a high-level view of the changes in a pull request with the new file tree view. When there is available room to show it, the tree replaces the existing Jump to menu and provides a hierarchical view of the files added, changed, deleted, or renamed in a pull request.
和訳)
新しいファイルツリー表示により、変更されたファイル間をより迅速に移動し、プルリクエストの変更点を上位から見ることができます。表示可能なスペースがある場合、ツリーは既存のジャンプメニューに取って代わり、プルリクエストに追加、変更、削除、リネームされたファイルの階層的なビューを提供します。
設定方法
右上のメニューより、[Feature preview] - [Pull Request File Tree]の[Enable]ボタンをクリックすると機能をONにすることが可能です。
参考・関連URL
- Pull Request File Tree Feedback · Discussion #12341 · github/feedback
- Pull-Requestにファイルツリーついたぞ!!
- GitHub NEW File Tree View in Pull Requests: a HUGE Productivity Boost 🥳🥳🥳 - DEV Community 👩💻👨💻
- GitHubのプルリクエストが見やすくなる「Pull Request File Tree」がプレビューされました! | DevelopersIO
脚注