Article version:

Filtering files in a pull request by file type

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

You can filter files in a pull request by file extension type, such as .html or .js, no extension, or dotfiles.

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

  1. Under your repository name, click Pull requests.

    Issues and pull requests tab selection

  2. In the list of pull requests, click the pull request where you'd like to focus on certain file types.

  3. On the pull request, click Files changed.

    Files Changed tab

  4. To see a summary list of the file types in your pull request, click File filter.

    File filter option above pull request diff

  5. To filter the pull request diff, select or unselect the desired files from the drop-down menu.

    File filter drop-down menu

  6. To clear the filter selection, under the Files changed tab, click Clear.

    Clear file filter selection

Further reading

Ask a human

Can't find what you're looking for?

Contact us