Get head revision of a branch on github hook