Skip to main content

All Questions

0 votes
1 answer
391 views

How to get number of lines of code of a file in a remote repo using PyGithub/ Githubsearch api?

commit = repo.get_commit(sha="0adf369fda5c2d4231881d66e3bc0bd12fb86c9a") print(commit.stats.total) i = commit.files[0].filename I can get the filename, even the file sha; but can't seem to ...
BrimBramBrum's user avatar
0 votes
1 answer
302 views

Getting the time when the file was committed on Github

I want to somehow want to see if there is a way to get the time for when a file was committed on Github. I have tried using PyGithub and GitPython, but they don't have any options as such. Does anyone ...
Harshdeep Singh's user avatar