You can ask your changes how you are doing now, but for new files it doesn’t exist, or you can try
https://api.github.com/repos/{user}/{repo}/commits?path={file.path}
for my story. You can also try with hast, a hash is the same event if the file has a different name
rkmax source
share