The change log describes what is "Added", "Removed", "Changed" or "Fixed" between each release.
- Stable support for graphql api (V4) (#593)
- Stable support for apps (previously integrations) (#592)
- Incorrect link in repository search docs (#594)
Integrations::configureto allow accessing early access program endpoints.- Add support for pagination and parameters in the pull request comments
- Add the ability to fetch user installations (
CurrentUser::installations) - Allow getting repo info by id (
Repo::showById) - Allow fetching repositories for a specific installation and user (
CurrentUser::repositoriesByInstallation)
PullRequest\ReviewandPullRequest\ReviewRequestis now part of the official API. No need to callconfigure.
- Issue where we serve the wrong cached response. We vary on authorization header now.
PullRequest::status- Throw InvalidArgumentException on
PullRequest::mergewhen wrong merge method is used. - Added
Protection::configure
- First argument to
Integrations::listRepositories()is now optional. - Moved tests from "functional" to "integration"
- API support for Pull Request Review Requests.
- API support for Traffic.
- API support for issue Assignees.
- API support for Miscellaneous Gitignore and Emojis.
- Added endpoints for issue lock, unlock and issue label show.
- Added more parameters to
User::starred. - Fluid interface by allowing
configure()to return$this. configure()support for issues API.
- Cache issue where some requests are not cached
- Issue with
User::all()creates a query with double question marks.
- Add support for retrieving a single notification info using his ID
- Add a function to get user organizations
- Added GraphQL support
- Add page variable to organization repo list (Organization::repositories())
- Add support for pull request review.
- Add support for adding branch protection.
- Bug with double slashes when using enterprise URL.
- Bug when headers not being passed to request (#529)
- Support for JWT authentication
- API for Organization\Members
- API for Integrations
- API for Repo\Cards
- API for Repo\Columns
- API for Repo\Projects
- API for User\MyRepositories
- Methods in Repo API for frequency and participation
ApiLimitExceedException::__constructhas a new second parameter for the remaining API calls.- First parameter of
Github\Clienthas changed type from\Http\Client\HttpClienttoGithub\HttpClient\Builder. A factory class was also added. To upgrade you need to change:
// Old way does not work:
$github = new Github\Client($httpClient);
// New way will work:
$github = new Github\Client(new Github\HttpClient\Builder($httpClient));
$github = Github\Client::createWithHttpClient($httpClient); - Renamed the currentuser
DeployKeysapi class toPublicKeysto reflect to github api name.
- HTTPlug to decouple from Guzzle
Github\Client::getLastResponsewas added- Support for PSR-6 cache
Github\Client::addPluginandGithub\Client::removePluginGithub\Client::getApiVersionGithub\Client::removeCache
- Uses of
Github\HttpClient\HttpClientInterfaceis replaced byHttp\Client\HttpClientie the constructor ofGithub\Client. - We use PSR-7's representation of HTTP message instead of
Guzzle\Http\Message\ResponseandGuzzle\Http\Message\Request. Github\Client::addHeaderswas added instead ofGithub\Client::setHeaders- Signature of
Github\Client::useCachehas changed. First argument must be aCacheItemPoolInterface - We use PSR-4 instead of PSR-0
- Support for PHP 5.3 and 5.4
Github/HttpClient/HttpClientInterfacewas removedGithub/HttpClient/HttpClientwas removed- All classes in
Github/HttpClient/HttpClient/Listener/*were removed Github/HttpClient/CachedHttpClientwas removed- All classes in
Github/HttpClient/Cache/*were removed
No change log before this version