Skip to main content
We publish frequent updates to our documentation, and translation of this page may still be in progress. For the most current information, please visit the English documentation.

This version of GitHub Enterprise was discontinued on 2023-03-15. No patch releases will be made, even for critical security issues. For better performance, improved security, and new features, upgrade to the latest version of GitHub Enterprise. For help with the upgrade, contact GitHub Enterprise support.

Filtering files in a pull request

To help you quickly review changes in a large pull request, you can filter changed files.

You can filter files in a pull request by file extension type, such as .html or .js, lack of an extension, code ownership, or dotfiles.

Using the file filter dropdown

Tip: To simplify your pull request diff view, you can also temporarily hide deleted files or files you have already viewed in the pull request diff from the file filter drop-down menu.

  1. Under your repository name, click Pull requests.

    Screenshot of the main page of a repository. In the horizontal navigation bar, a tab, labeled "Pull requests," is outlined in dark orange.

  2. In the list of pull requests, click the pull request you'd like to filter.

  3. On the pull request, click Files changed.

    Screenshot of the tabs for a pull request. The "Files changed" tab is outlined in dark orange.

  4. Use the File filter dropdown menu, and select, deselect, or click the desired filters.

    Screenshot of the view options for a pull request. The file filter option is outlined in dark orange.

  5. Optionally, to clear the filter selection, under the Files changed tab, click Clear filters.

    Screenshot of the view options for a pull request. The "Clear filters" option is outlined in dark orange.

Further reading