move github related functions to source/github