Azure DevOps: merging pull requests and setting autocomplete with the API

How to merge a pull request in Azure DevOps or set it to autocomplete using the Azure DevOps API Client for Node.js.