On Github pull requests, is there a way to look at code changes and hide all of the code comments?

The answer to this question came from ChatGPT, but I wanted to share it here on my blog for my own personal reference or if someone else in the future may need it.

My question to ChatGPT: On Github pull requests, is there a way to look at code changes and hide all of the code comments? I’m having a trouble going over the code changes in my pull requests because my company has an ai code review bot that leaves comments and suggestions everywhere, and then doesn’t delete its old irrelevant comments and suggestions.

The answer:

View the raw diff

If you just want to inspect the code without any inline discussions, you can append .diff or .patch to the pull request URL.

For example:

https://github.com/org/repo/pull/123.diff


This shows only the patch, with no review comments at all.

(UPDATE from 10 minutes after writing this blog post): This doesn’t work well at all! If you append “.diff” like ChatGPT suggested you end up getting a raw text file to go over. I kind of hate ai. One of the big problems with ai in my opinion is it’s confidence. AI always sounds good, confident, and competent, but it’s often confidently wrong. I’ll try and come back and update this blog post with a human answer once I find the correct answer…

(UPDATE): The real human answer you, I, and everyone else is actually looking for ->

Click on Files Changed > Click the Gear Icon next to the Submit Review button > select Minimize Comments

 

topherPedersen