extract function github_get_conn, supply (currently failing) tests