Create one method just like repository where you can fetch commits details based on username and repository Link: https://developer.github.com/v3/repos/commits/#get-a-single-commit