All notable changes to this project will be documented in this file.
This project adheres to Semantic Versioning.
- Create a file through API via
Src:create
(PR #40)
- Updated
Api:api
in order to support class name resolution via::class
(PR #38) - Updated
BranchRestrictions
with newly available restriction types (PR #39)
- Request content was not set when a json was provided (issue #74)
- Fixed
count()
issue with PHP 7.2 (issue #72) kriswallsmith/buzz
constrained to^0.16
from~0.15
in order to work on PHP > 7.0 (issue #73)
- Implemented Pipeline support. ( thanks to @marco_veenendaal )
- Added $params arg to Repositories:all method (issue #65)
- Include format param only in API v1
- Endpoint to get a list of teams to which caller has access.
- Endpoint to get emails for authenticated user.
- Basic pager in order to support response pagination. (@see #17)
- Refs/Branches and Refs/Tags endpoints.
- Minimum required PHP version has been bumped to 5.4 from 5.3
- SSL certificate verification is now enabled by default.
Api
constructor signature was modified in order to reflect removal of transport object dependency. (@see Removed[2])
- Removed deprecated methods from
Api
(childFactory, processResponse, authorize) - Removed transport object dependency from
Api
.
- NormalizeArrayListener should not run on
FormRequest
(issue #62) - [Tests] Use mocked HTTP client in
OAuth2ListenerTest:testGetAccessTokenFail
- Updated broken links (.org to .io) inside README.md
- Fixed broken tests on PHP 5.3 due to short array syntax.
- Client::setApiVersion should accept only argument of type string (issue #57)
- Added missing polyfill for "json_last_error_msg".
- Declining a PR without a
message
parameter caused a 500 response. (issue #43)
- Implemented build statuses endpoints. (PR #27)
- Usage of short array syntax inside one test, forced the test suite to fail on PHP 5.3
- HTTP Client options where not forwarded to child classes. (PR #26)
- Implemented webhooks endpoints.
- Toggle spam on a changeset comment. (issue #2)
- Support for OAuth2. (issue #34)
- Marked Repositories/Services as deprecated in favor of Repositories/Hooks. (issue #29)
- [DOCS] Added example on how to use this library in combination with a 3rd party OAuth1 client in a 3-legged flow.
forking_policy
parameter renamed tofork_policy
on repository endpoint. (issue #32)
- Client listener propagation to child classes. (PR #23)
- Better parameters validation and type hints.
- Documentation has been updated and is available at http://gentlero.bitbucket.org/bitbucket-api/
- Request body was build the wrong way when no ( or wrong type of ) additional params where passed to Repository::create()
Commits::all()
should use GET instead of POSTListener::delListener
did not properly deleted the listener.- Forward all available listener when a child class is requested via Api::api or Api::childClass.
- Added Changelog
- Added
Api::api()*
as a single entry point for concrete apis ( thanks to @digitalkaoz )
- Fixed
Privileges::grant()
parameters format ( Fixes #22 )
- Marked
eabay/bitbucket-repo-sync
as conflict in composer.json - CS fixes
- Make tests go green again. ( My bad and I'm sorry ).
- Bug: A default content-type is added for POST and PUT, if none was given. ( Fixes #19 )
- Allow setting custom
Request
andResponse
inside HTTP client, which should facilitate integration in 3rd party software.
- Implemented basic priority for listeners.
- Bug: Missing content-type made
PullRequests::merge
andPullRequests::declined
unusable.
- Bug: OAuthListener: Parameters may be included from the body if the content-type is urlencoded. ( Fixes #18 )
- Added API 2.0 endpoints for
Users
( get, followers, following, repositories ) - Added API 2.0 endpoints for
Teams
. ( profile, members, followers, following, repositories ) - Added API 2.0 endpoints for
BranchRestrictions
. ( all, create, get, update, delete ) - Added
delListener()
method forClientInterface
.
- Bug: Mandatory parameters inside PullRequest's methods were not checked.
- Documentation updated.
Started to implement version 2.0 of the API.
- All 1.0 endpoints that have a "twin" in version 2.0 will be updated to use the never version.
- All specific 2.0 endpoints will be added gradual.
- Implemented
Commits
andCommits::Comments
endpoints for API 2.0 - Added
Repository::get()
( API 2.0 ) - Added all endpoints for PullRequests ( API 2.0 )
- Added repositories endpoint ( API 2.0 )
- Updated
Repository
to use API 2.0 (create, delete) and implemented endpoints specific to API 2.0 ( watchers, forks ) - Updated
PullRequests::all()
to API 2.0 - Updated
PullRequests::Comments::get()
andPullRequests::Comments::all()
to API 2.0 - Updated
Repositories::PullRequests::all()
to allowstate
param. - CS fixes.
- Added
Repositories::PullRequests::all()
method to get a list of all pull requests.
- Bug: group privileges returned 400 error ( Fixes #14 )
- Implemented HttpClient which abstracts HTTP layer from base clases and allows custom HTTP libraries to be used.
- Implemented simple EventListener which can be used to change request before and after its executed.
- Updated
Api::setCredentials()
to use our new EventListener.
- Bug: Duplicate array keys in groups filters. ( Fixes #12 )
- Code clean, fixed typos.
- First public release