Update the usage of the github api client to the new API