Dear community,
Pipelines offers the possibility to deploy when a pull-request is open.
But is it possible to script Pipelines so that it automatically accepts and merges the pull request if the deployment went fine?
Thank you very much for any suggestions, insights or workaround.
Philippe
Hello Philippe,
Pipelines has no built in ability to automatically approve and merge a pull request.
You can however use the Bitbucket REST API and call the relevant endpoints inside of your running Pipelines scripts to accept and merge pull requests.
The relevant endpoints are documented here: https://developer.atlassian.com/bitbucket/api/2/reference/resource/repositories/%7Busername%7D/%7Brepo_slug%7D/pullrequests/%7Bpull_request_id%7D
Thanks,
Phil
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.