-
Suggestion
-
Resolution: Unresolved
-
None
Hi team,
A user has raised a valid improvement request for our API.
When using the "include" filtering option on the list commits endpoint, for example:
https://api.bitbucket.org/2.0/repositories/some-workspaceid/some-repo/commits?include=main&include=testbranch
When both branches exist, the command works fine. If either main or testbranch does not exist, however, the API returns an error rather than just simply ignoring the non-existent branch:
{ "type": "error", "error": { "message": "Commit not found", "data": { "shas": [ "testbranch" ] } }, "data": { "shas": [ "testbranch" ] } }
If we could improve this so that partial results are returned for the existing branch, this would be preferable.
Cheers!
- Ben (Bitbucket Cloud Support)