RepoSense
RepoSense copied to clipboard
Show commit details in code view
Current: when the user clicks on a ramp, we open the GitHub page showing the commit
Suggested: show the commit in the code view instead
Possibly related: #63
Possibly related: #148
@myteo did some exploration on this front. It seems the cost is too high to achieve this, in terms of processing time as well as storage space.
I found the github API that will return the commit diff, sth like the image below, and there are open source diff parser but havnt tested. If we only make the api query when clicking the ramp I guess the cost might be ok? The problem is we need to import the parser and deal with cors issue.
I found the github API that will return the commit diff, sth like the image below, and there are open source diff parser but havnt tested. If we only make the api query when clicking the ramp I guess the cost might be ok? The problem is we need to import the parser and deal with cors issue.
Unauthenticated users have severe API quota limitations though.
I will leave two related issues here for reference but close them. Issues are: #63, #148.