hi ! What happens if there is no consumer branch w...
# general
p
hi ! What happens if there is no consumer branch with the same name as the provider and the provider has set
matchingBranch: true
in there configuration ?
m
Probably it won't match any contracts and the verification will fail
p
Is there a way to fallback to other branch’s pact (develop or main branch for example ) ?
m
you can specify multiple selectors
p
hi,
fallbackBranch
is this the one, sorry i am being a little confused since there are so many configurations
m
Just create a second selector with the branch set to what you care about.
p
so does pact follow the order of selectors ?
m
It will find matches for each selector given and combine them. Every app should have a main branch though