When a source branch is closed after a PR has been merged, BitBucket does delete the branch but does not send a "branch deletion" event. Use the “pull request:fulfilled” event. The JSON payload for this event does contain the source branch and could therefore be used to delete the pipeline, if the “close_source_branch” is set to true.
When a source branch is closed after a PR has been merged, BitBucket does delete the branch but does not send a "branch deletion" event. Use the “pull request:fulfilled” event. The JSON payload for this event does contain the source branch and could therefore be used to delete the pipeline, if the “close_source_branch” is set to true.