Azure DevOps: merging pull requests with conventional commits

How to merge a pull request in Azure DevOps and maintain a git commit history of conventional commits, using the Azure DevOps API and build validations.