Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Can I run pipeline only after approving a pull request?


here is the snippet Capture.JPG


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 


1 answer

0 votes

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.


Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Bitbucket

New improvements to user management in Bitbucket Cloud 👥

Hey Community! We’re willing to wager that quite a few of you not only use Bitbucket, but administer it too. Our team is excited to share that we’ll be releasing improvements throughout this month of...

3,792 views 10 16
Read article

Community Events

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

Events near you