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

This will be better for IDEs as well, as it allows proper autocompletion of subsequent methods (which is the reason why this API was introduced)