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.
current flow
Create PR -> Run Pipeline & Code Review -> Press Merge -> Merge
wanted flow
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.
Cheers,
Daniil
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.