This handler will automatically merge the pull request when the condition provided evaluates to true. It will only do this if can be merged with no conflicts, and no merge checks veto the merge. In other words, if it can be merged from the Bitbucket UI, it will do the merge.
The examples contain some sample conditions, such as:
A senior developer has approved
At least two reviewers have approved
There is also the option to automatically delete the branch after the pull request has been merged successfully.
A pull request can be automatically merged when every reviewer has approved it, by creating an event handler similar to the following one: