Skip to content

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

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Aug 26, 2020
Merged

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

merged 1 commit into from
Aug 26, 2020

Conversation

hadjedjvincent
Copy link
Contributor

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 GrahamCampbell changed the title Commits: fix missing parameters into URL [3.2] Commits: fix missing parameters into URL Aug 26, 2020
@GrahamCampbell GrahamCampbell changed the title [3.2] Commits: fix missing parameters into URL [3.2] Fixed the method used to list and get commits Aug 26, 2020
@GrahamCampbell GrahamCampbell merged commit 6437ff4 into BitbucketPHP:3.2 Aug 26, 2020
@GrahamCampbell
Copy link
Member

Thanks. 🍻

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants