Is there any way to get the total number of files & the total number of lines of code from *github.Repository.
There is a Go package that helps explore git in Go code. The Repository class in which we are speaking is here.
As per this documentation, looks like there is no direct way to get the total number of files or a total number of lines of code.
Any expert who can shed light on this or a workaround for this?
I got to know about 'total_count' field in the response schema but that is just the total count of the results returned. Not related to what we are speaking here. Cloc is probably another option but it would create a dependency to maintain this.