We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
atlassian-python-api/atlassian/bitbucket/cloud/repositories/commits.py
Lines 37 to 38 in ac0e1fe
A trailing slash is always added to the URL in requests for this endpoint.
If the "top" param is set, then the resulting URL will be https://api.bitbucket.org/2.0/repositories/{workspace}/{repo_slug}/commits/{commit}/. This results in a 404.
I'll raise a PR to fix this.
The text was updated successfully, but these errors were encountered:
To clarify, the Bitbucket API is interpreting the / as part of the commit hash. Sample response shown below:
{ "type": "error", "error": { "message": "Commit not found", "data": { "shas": [ "05XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX03/" ] } }, "data": { "shas": [ "05XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX03/" ] } }
Sorry, something went wrong.
Prevent trailing / being added if top (commit hash) is specified (#1320)
2e232c0
Fix for issue #1319
No branches or pull requests
atlassian-python-api/atlassian/bitbucket/cloud/repositories/commits.py
Lines 37 to 38 in ac0e1fe
A trailing slash is always added to the URL in requests for this endpoint.
If the "top" param is set, then the resulting URL will be https://api.bitbucket.org/2.0/repositories/{workspace}/{repo_slug}/commits/{commit}/. This results in a 404.
I'll raise a PR to fix this.
The text was updated successfully, but these errors were encountered: