helper function github_parse_path