Get git commit from short hash using Github API
Give this a try https://api.github.com/repos/$USER/$REPO/commits/918fe27
Example: https://api.github.com/repos/rails/rails/commits/abe6484
Docs: http://developer.github.com/v3/repos/commits/#get-a-single-commit