GitHub has thousands of such "features" and they're all "hidden" in plain sight in big green buttons. None of this is undocumented, they all appear exactly where you would expect them (e.g. when searching as a new user, GitHub suggests you can use regex)
Here's an undocumented (actually hard to find) feature:
- on a commit or PR, append .patch or .diff to the URL