here is the snippet
Now what I want to do is instead of blindly running the pipeline, wait until the pull request is approved.
Quite alot of times after a PR is created, so many changes are required, and pipelines are running for no purpose. and best way to avoid that is only after the "merge" button is clicked.
Create PR -> Run Pipeline & Code Review -> Press Merge -> Merge
Create PR -> Code Review -> Press Merge -> Run Pipeline -> Merge
Hello @Mohamad Qaddura,
Welcome to the Community!
Unfortunately, this is not currently possible in Bitbucket. The only work around I can think of is to run a pipeline manually for the source branch of the PR before you merge it. However, unlike pipelines for PRs, it won't automatically merge the destination branch into your working branch before it runs, so you'll need to configure that manually if you want to.
Please raise a feature request in our public issue tracker so that we know about your desired workflow. You'll be notified whenever that ticket is updated.
Hi everyone, The Cloud team recently announced 12 new DevOps features that help developers ship better code, faster ! While we’re all excited about the new improvements to Bitbucket ...
Connect with like-minded Atlassian users at free events near you!Find an event
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no Community Events near you at the moment.Host an event
You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events