Factor out the github related calls.