Check out the latest updates to the new pull request “Files changed” page public preview, including rich diffs, improved tree ordering, and more!

🖼️ Rich image and markdown diffs

Rich diff previews are now provided for image and markdown files that were added or changed in the pull request!

For markdown and .svg files you can toggle between a source view or a rich preview. For all supported image formats, you have three different options (2-up, swipe, and onion skin) for comparing the change.

🌴 Improved file tree ordering

The ordering of files and folders in the tree is now more consistent with other experiences on GitHub and your local IDE. Folders are now ordered before files at the same level in the tree. Previously, files could be mixed between folders, making it difficult to tell which folder a file was in.

🔧 Other improvements

Other noteworthy fixes and enhancements since the last update:

  • Fixed: Expanding diff hunks could fail because of certain characters in the file’s path.
  • Fixed: Navigating to a collapsed file from the tree or side panel now expands the file automatically.
  • Improved: Continued to improve performance by reducing re-renders when viewing and interacting with larger pull requests.
  • Improved: A spinner now appears on certain buttons, like Add comment, after clicking to make it more obvious that the operation is in progress.

🔄 Known issues

The new page still has some gaps that we plan to address:

  • Reviewing a single commit
  • Applying multiple suggested changes (batching)
  • Submodule changes
  • Code scanning alerts (and the ability to dismiss the alerts)
  • Keyboard shortcuts, including to hide annotations

Also, the new page is currently limited to only showing the first 300 files of the pull request. If you need to view larger pull requests, you can easily switch over to the classic page.

Check out the feedback discussion for an up-to-date list of known issues.

Feedback

If you haven’t tried the improved experience yet, click the Try the new experience link at the top of the existing pull request “Files changed” page.

Your feedback is super important to us! To report problems, ask questions, see the latest news, and more, visit the feedback discussion.