Updated to keep in sync with GitHub API changes