-
-
Notifications
You must be signed in to change notification settings - Fork 354
Open
Labels
awaiting feedbackAwaiting Feedback from OPAwaiting Feedback from OPenhancementIndicates new feature requestsIndicates new feature requeststriageThis issue is yet to be triaged by a maintainerThis issue is yet to be triaged by a maintainer
Description
Expected behaviour
Can set up like this
const verificationOptions = {
//...
consumerVersionSelectors: [
{
matchingBranch: true,
fallbackBranch: "main"
}
]
}
Actual behaviour
Steps to reproduce
I checked code base here https://github.com/pact-foundation/pact-js-core/blob/master/src/verifier/types.ts#L3
export interface ConsumerVersionSelector {
tag?: string;
latest?: boolean;
consumer?: string;
deployedOrReleased?: boolean;
deployed?: boolean;
released?: boolean;
environment?: string;
fallbackTag?: string;
branch?: string;
mainBranch?: boolean;
matchingBranch?: boolean;
}
It does not match the document https://docs.pact.io/pact_broker/advanced_topics/consumer_version_selectors#properties
Metadata
Metadata
Assignees
Labels
awaiting feedbackAwaiting Feedback from OPAwaiting Feedback from OPenhancementIndicates new feature requestsIndicates new feature requeststriageThis issue is yet to be triaged by a maintainerThis issue is yet to be triaged by a maintainer