BitbucketPHP / Client

Bitbucket API 2.0 client for PHP
MIT License
99 stars 26 forks source link

[3.2] Fixed the method used to list and get commits #59

Closed hadjedjvincent closed 4 years ago

hadjedjvincent commented 4 years ago

Use GET instead of POST while retrieving commits.

The use of POST makes any parameter added to the POST body and converted to JSON.

As indicated into the Bitbucket API documentation, theses routes are using GET and not POST method. https://developer.atlassian.com/bitbucket/api/2/reference/resource/repositories/%7Bworkspace%7D/%7Brepo_slug%7D/commits

By using $this->get(), all the parameters are now correctly added to the URI.

GrahamCampbell commented 4 years ago

Thanks. 🍻