There are some files that must be included as part of a pull request, but in my experience are never actually reviewed. A perfect example is the package.lock.json file in any project that uses npm. It would be a wonderful addition to the user experience if there were a way to collapse that file entirely and help de-clutter the page.
If you are using Bitbucket Cloud, this feature does what you are describing:
Exclude files from pull request diffs
https://confluence.atlassian.com/bitbucket/exclude-files-from-pull-request-diffs-961252751.html
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.