Create a single helper function to create Github mock.