github fetch function setup