Description
(or toggle such behavior).
Use case:
I often review large PRs by just scrolling through them, without checking the "viewed" checkbox after I review. It's an extra click for each file, which adds up. I often approve the PR without marking any files as "viewed".
The problem comes when the author adds new commits after my approval, so I have to come back and re-review. If I were to have checked all of the boxes, only the files which I hadn't reviewed would be expanded when I went to the Files tab. But I was lazy and didn't check any of them, so all of the files are expanded; it's the entire diff.
My solution is a userscript that checks all of the unchecked boxes; I trigger it when I approve the PR. It's really simple:
document.querySelectorAll(".js-reviewed-checkbox").forEach(checkbox => !checkbox.checked && checkbox.click());
I tie it to a key combo, so I can easily mark them all as reviewed.
Let me know if this is something that you think would add value to this project.