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

"pull-requests" syntax question

inger_klekacz May 13, 2021

The Configure bitbucket-pipelines.yml doc shows the syntax for pull-request pipelines as such:

pipelines:
pull-requests:
'**': #this runs as default for any branch not elsewhere defined
- step:
script:
- ...
feature/*: #any branch with a feature prefix
- step:
script:
- ...

Do the entries in the pull-requests section represent the source branch, or the destination branch?

That is to say, if I want to merge `branch1` into `master`, would my pull-request entry say `branch1`, or `master`?

1 answer

1 accepted

0 votes
Answer accepted
Justin Thomas
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
May 17, 2021

@inger_klekacz The entry represents the source branch. As per your example, it would be `branch`. I will raise an internal ticket to update the docs, thanks for the feedback.

inger_klekacz May 27, 2021

...`branch1`, you mean, right? not `branch`? Thanks for getting back to me!

QiangShen July 18, 2022

@Justin Thomas So how can I match the destination branch if I want to do some trigger with PR to destination branch?

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events