This user script may be used with Tamper Monkey or similar to add a "Collapsed Confirmed" button to github pull requests.
I have observed:
- Large PRs can generate hundreds of comment threads.
- There is no good for the submitter to mark "ok, I've done the work" and for the commenter to say "yep, looks good now".
- Reviewing the latest changes does not necessarily allow one to see the comments (if any) that inspired a change.
- It is rather painful to manually sort through which comment threads still need attention.
This was implemented for a PR where:
- I made a bunch of comments
- The submitter addressed comments here and there, marking them resolved as things progressed. Marking resolved corresponded with a change in the submitter's workspace. That code generally made it up to github hours to days later.
- From time to time I reviewed the recent fixes. To indicate my happiness with them, I added a "confirmed" comment. To express my displeasure, I explained what was wrong and marked the comment thread unresolved.
- Install tamper monkey or similar user script extension
- Add the expand expand expand script.
- Add the Collapse Confirmed scrpt (below)
- Visit a PR, first click on the expand button. When it is done, click on the collapse button.
A good PR to try it on is TritonDataCenter/kbmd#2.