Bitbucket triggers builds on deleted branches

I configured Bitbucket webhook to trigger on Repository push.
After each merge (which also deletes the source branch) it triggers build, which fails because of deleted branch.

Does anyone have the same experience?
How do you deal with it?

Hello

We need more details here in order to investigate. Please open a support ticket (from the top right menu in the Codefresh UI).

Be sure to include the URL of the build that has the issue.