I have a pipeline that creates a review app on Heroku when I create a pull request on bitbucket. This pipeline is started from pipelines:pull-requests:'**".
When a pull request gets closed, I would like to destroy the review app. How do I trigger a pipeline when a pull request is closed?