refactor of GithubAPI.inline