- add
Issue.createLabel - add
Repository.createKey - add
Repository.deleteKey - add
Repository.getBranch - add
Repository.listKeys - add
Repository.getKey - add
Repository.updatePullRequest - deprecate
Repository.updatePullRequst
- Request URL for deleting a hook (
Repository.deleteHook)
- add
Repository.mergePullRequest - add
Repository.updatePullRequest - add
Repository.listPullRequestFiles - add
Repository.getReadme
- add
Issue.listIssueEvents
- Search returns results again
Team API
Organization.createTeamOrganization.getTeamsTeam.getTeamTeam.listReposTeam.editTeamTeam.listMembersTeam.getMembershipTeam.addMembershipTeam.isManagedRepoTeam.manageRepoTeam.unmanageRepoTeam.deleteTeam
Repository#movehas a new argument list UsergetRepos→listReposgetOrgs→listOrgsgetGists→listGistsgetNotifications→listNotificationsgetStarredRepos→listStarredRepos
Repository:movenow worksUser:listRepos
Repository: Replace invalid references topostTreewithcreateTree
- Search API now returns all pages of results
- Added
Repository.listReleases
Added functions for querying organization membership
Organization.listMembersOrganization.isMember
Added functions for issue comments
Issue.listCommentsIssue.getCommentIssue.editCommentIssue.deleteComment
- all functions now return a Promise
Added methods for commenting on Gists:
Gist.listCommentsGist.getCommentGist.editCommentGist.deleteCommentGist.createComment
Repository.deleteFilenow correctly returns a promise.
Complete rewrite in ES2015.
- Promise-ified the API
- Auto-generation of documentation
- Modularized codebase
- Refactored tests to run primarily in mocha
Most of the breaking changes are just methods that got renamed. The changes to User and Organization are deeper
changes that now scope a particular User or Organization to the entity they were instantiated with. You will need
separate Users to query data about different user accounts.
Github.getOrg→Github.getOrganizationand requires an organization name.Github.getUsernow requires a username.Issue.comment→Issue.createIssueCommentIssue.create→Issue.createIssueIssue.edit→Issue.editIssueIssue.get→Issue.getIssueIssue.list→Issue.listIssuesRepository.branch→Repository.createBranchRepository.collaborators→Repository.getCollaboratorsRepository.compare→Repository.compareBranchesRepository.contents→Repository.getContentsand now takes an argument for the content typeRepository.deletehas been removed.Repository.editHook→Repository.updateHookRepository.editRelease→Repository.updateReleaseRepository.getCommitno longer takes a branch as the first argumentRepository.getPull→Repository.getPullRequestRepository.getRefnow returns therefspecfrom GitHub's API.Repository.getShanow returns the same data as GitHub's API. If the reqeusted object is not a directory then the response will contain a propertySHA, and if the reqeusted object is a directory then the contents of the directory arestated.Repository.getStatuses→Repository.listStatusesRepository.listPulls→Repository.listPullRequestsRepository.postBlob→Repository.createBlobRepository.postTree→Repository.createTreeRepository.readremove in favor ofRepository.getContentsRepository.remove→Repository.deleteFileRepository.show→Repository.getDetailsRepository.write→Repository.writeFileSearch.code→Search.forCodeSearch.issues→Search.forIssuesSearch.repositories→Search.forRepositoriesSearch.users→Search.forUsers- The Search API no longer takes a string, it now takes an object with properties
q,sort, andorderto make the parts of the query easier to grok and to better match GitHub's API. User.gists→User.getGistsUser.notifications→User.getNotificationsUser.orgRepos→Organization.getReposUser.orgs→User.getOrgsUser.repos→User.getReposUser.show→User.getProfileand no longer takes filtering optionsUser.userStarred→User.getStarredRepos