RefactoringMiner icon indicating copy to clipboard operation
RefactoringMiner copied to clipboard

Enable "mark as read"

Open koppor opened this issue 1 month ago • 3 comments

GitHub PRs:

Image

With "Viewed", one can mark a diff as viewed - and then its collapsed.

At http://127.0.0.1:6789/singleView, there is no such button:

Image

Thus, when reviewing a large PR, I cannot focus on the important things changed.


OK, it would be even better if tags could be added to a diff. And that I can then filter the view according to diffs. Reason: A large PR can touch multiple semantic changes - and I sometimes one needs to do a deep dive into one - and not into all at once.


Triggered by https://github.com/JabRef/jabref/pull/14252

koppor avatar Nov 27 '25 11:11 koppor

@koppor The information regarding whether the file is viewed is not available in the GitHub API.

This is what Gemini says:

The GitHub API currently does not provide a direct endpoint to programmatically mark a file as "viewed" within a pull request, nor does it provide a way to retrieve the "viewed" status of individual files. The "mark files as viewed" feature, introduced in 2019, is primarily a UI-driven functionality within the GitHub web interface to help users track their progress during pull request reviews. While the GitHub API allows for extensive interaction with pull requests, including retrieving pull request details, comments, reviews, and managing review requests, the specific functionality of marking files as viewed is not exposed through the public API. Discussions on GitHub's community forums and issue trackers confirm this limitation, with users requesting this feature for various automation and integration purposes. Therefore, if the goal is to interact with the "viewed" status of files within a pull request, it must be done manually through the GitHub web interface.

tsantalis avatar Nov 27 '25 19:11 tsantalis

I didn't mean to use the GitHub API, but that RefactoringMiner offers a simlar functionality (using its own UI and its own backend). Maybe, it would suffice to store this information in the browser - and accept that itis lost on reload maybe.

koppor avatar Nov 27 '25 20:11 koppor

@koppor I found the following that might be helpful https://docs.github.com/en/graphql/reference/mutations#markfileasviewed https://docs.github.com/en/graphql/reference/mutations#unmarkfileasviewed

but I am not so familiar with the GitHub GraphQL APIs.

tsantalis avatar Dec 11 '25 11:12 tsantalis