Hi,
When a build is finished, we receive the Webhook "repo:commit_status_updated".
With this webhook we are trying to get the environment (if there is one) of the build that triggered the event.
Unfortunately the environment is not available in the payload neither in `/pipelines/{build number}/steps`.
We can gather it using the `/2.0/repositories/{workspace}/{repo_slug}/deployments/` endpoint but query and sort does not work.
The query is simply ignored :
GET https://api.bitbucket.org/2.0/repositories/kmp-agency/test/deployments/?q=release.commit.hash = "597957cc354cad2b0737e4eae0c080209a235c0f"
And the sort parameter returns the error
{
"key": "deploy-service.request.bad-request",
"message": "Invalid sort attribute provided 'number'",
"arguments": {}
}How can we acheive what we want ?
Thanks in advance