I am using bitbucket pipelines for PR raised pipeline, is there any way to write in bitbucket-pipelines.yml or in bitbucket settings to Cancel/Decline PR if pipeline gets failed at any step?
There are variables like "BITBUCKET_PR_ID", "BITBUCKET_EXIT_CODE", which contains PR ID and exit status code, can we automate process by that?
MAIN OBJECTIVE: To cancel the pull-request if any step get failed in Bitbucket-Pipelines.