The change log describes what is "Added", "Removed", "Changed" or "Fixed" between each release.
- Support for Miscellaneous Licenses (#744)
- Structured Limit objects for rate limiting API (#733)
- Support for getting star creation timestamps in activity/starring endpoint (#729)
- Added missing has_projects parameter to repo create (#752)
- Proper type hinting for magic methods (#758)
- Allow symlink to files to be downloaded (#751)
- Fix of PHP version in readme (#747)
- Fix documentation to get release for a tag (#755)
- Declare all used properties in RateLimitResource class (#762)
- Set correct property and return types (#764)
- Fixed install docs broken after 2.0 release of httplug lib (#767)
- Convert the assignee parameter to array to avoid getting a 422 error on github (#738)
- Fix GraphQL test warnings when they do not assert anything (#735)
- Check for BC breaks during the travis build (#734)
- Support for "before" parameter on Notification API (#724)
- Allow unspecified
event
when creating review (#723)
- Adjust: installationn access token endpoint (#731)
- Fixed "get single label" example and add correct example for getting issue's labels (#732)
- Add comment about
Key
constructor argument (#722)
- API endpoint
Github\Api\Repo::transfer()
- API endpoint
Github\Api\Notification::markThreadRead()
- API endpoint
Github\Api\Search::topics()
- Make sure to always reset the "per page" in
Github\ResultPager::fetchAll()
.
- Allow our HTTP plugins to show up in the Symfony web profiler page. (#687)
- Repository documentation to current user (#671)
- Add collaborator permission call (#678)
- Add missing parameters for User/CurrentUser Repositories (#684)
- Pimp the readme with badge poser (#686)
- Typo in assignee documentation
- Missing use statement in security example
- Fixed phpdoc typo (#695)
- Replace use of deprecated api to the correct one in the security docs (#697)
- Updated requirements in readme (#689)
- Phpunit 6 compatibility
Github\Api\AbstractApi::setPage()
to allow you to set the page on all endpoints.- Support for query parameters and request headers on
Github\Api\User::following
andGithub\Api\User::followers
- API endpoint
Github\Api\CurrentUser\Emails::allPublic()
- API endpoint
Github\Api\Search::commits()
- API endpoint
Github\Api\Miscellaneous\CodeOfConduct
- API endpoint
Github\Api\Repo::topics()
- API endpoint
Github\Api\Repo::replaceTopics()
- Fixed bug in
PathPrepend
plugin where "api/vX" could be duplicated.
- Improved documentation and doc blocks
- Dropped support for php 5.5
The following endpoints were deprecated by Github and are also deprecated in the client:
Github\Api\Repo::find()
Github\Api\User::find()
Github\Api\Issue::find()
- Support for graphql api variables (#612)
- Added missing branch protection methods (#616)
- Helper function
fromFile
to get GraphQL queries from a file (#628) - Extra parameter
params
to collaborators api calls (#623) - Documentation for GitData API (#613)
- Remove
body
as a required parameter when creating an issue (#624) - Minor fixes in example code (#617)
- Stable support for graphql api (V4) (#593)
- Stable support for apps (previously integrations) (#592)
Repo::events()
- Incorrect link in repository search docs (#594)
- Added the required parameter
$message
onReview::dismiss
.
Integrations::configure
to 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\Review
andPullRequest\ReviewRequest
is 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::merge
when 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::__construct
has a new second parameter for the remaining API calls.- First parameter of
Github\Client
has changed type from\Http\Client\HttpClient
toGithub\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
DeployKeys
api class toPublicKeys
to reflect to github api name.
- HTTPlug to decouple from Guzzle
Github\Client::getLastResponse
was added- Support for PSR-6 cache
Github\Client::addPlugin
andGithub\Client::removePlugin
Github\Client::getApiVersion
Github\Client::removeCache
- Uses of
Github\HttpClient\HttpClientInterface
is replaced byHttp\Client\HttpClient
ie the constructor ofGithub\Client
. - We use PSR-7's representation of HTTP message instead of
Guzzle\Http\Message\Response
andGuzzle\Http\Message\Request
. Github\Client::addHeaders
was added instead ofGithub\Client::setHeaders
- Signature of
Github\Client::useCache
has changed. First argument must be aCacheItemPoolInterface
- We use PSR-4 instead of PSR-0
- Support for PHP 5.3 and 5.4
Github/HttpClient/HttpClientInterface
was removedGithub/HttpClient/HttpClient
was removed- All classes in
Github/HttpClient/HttpClient/Listener/*
were removed Github/HttpClient/CachedHttpClient
was removed- All classes in
Github/HttpClient/Cache/*
were removed
No change log before this version