You're on your way to the next level! Join the Kudos program to earn points and save your progress.
Level 1: Seed
25 / 150 points
1 badge earned
Challenges come and go, but your rewards stay with you. Do more to earn more!
What goes around comes around! Share the love by gifting kudos to your peers.
Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!
Join now to unlock these features and more
Right now, a pipeline runs as soon as a Pull Request is created. Meaning, it runs before the pull request has been approved or merged. This is not ideal - what if the pull request requires revisions?
Is there a way to specify in the `bitbucket-pipelines.yml` to only deploy upon a merged pull request, rather than as soon as the PR is created?
My current pipeline looks like this:
pull-requests: # The branch pattern under pull requests defines the source branch.
name: Deploy to Production
- do stuff
- deploy stuff
For example, in github actions, you can do something like:
if: github.event.action == 'closed' && github.event.pull_request.merged == true