Devin Woods
07/19/2024, 4:55 PMcan-i-merge CLI call? I am having trouble, not sure if I am using the flags wrong or if there is misconfiguration. I can point to my consumer like this
--pacticipant SOS --version 00f1dbc4
and I've tried to point to one specific provider like this
--pacticipant DASHBOARD --latest (results in " Unknown switches "--latest" ")
AND
--pacticipant DASHBOARD --branch mainline (results in " Unknown switches "--branch" ")
AND
--pacticipant DASHBOARD --branch mainline --latest (results in " Unknown switches "--branch", "--latest" ")
but none of those combos work. Is it expected to get the unknown switches message? The usage seems to suggest that I am using it right...
The version must be specified using `--version VERSION`, `--branch BRANCH` `--latest`, `--latest TAG`, or `--all TAG` for pacticipant DASHBOARDMatt (pactflow.io / pact-js / pact-go)
Usage:
pact-broker can-i-merge -a, --pacticipant=PACTICIPANT -b, --broker-base-url=BROKER_BASE_URL
Options:
-a, --pacticipant=PACTICIPANT # The pacticipant name. Use once for each pacticipant being checked.
-e, [--version=VERSION] # The pacticipant version. Must be entered after the --pacticipant that it relates to.
-o, [--output=OUTPUT] # json or table
# Default: table
[--retry-while-unknown=TIMES] # The number of times to retry while there is an unknown verification result (ie. the provider verification is likely still running)
# Default: 0
[--retry-interval=SECONDS] # The time between retries in seconds. Use in conjuction with --retry-while-unknown
# Default: 10
[--dry-run], [--no-dry-run], [--skip-dry-run] # When dry-run is enabled, always exit process with a success code. Can also be enabled by setting the environment variable PACT_BROKER_CAN_I_MERGE_DRY_RUN=true. This mode is useful when setting up your CI/CD pipeline for the first time, or in a 'break glass' situation where you need to knowingly deploy what Pact considers a breaking change. For the second scenario, it is recommended to use the environment variable and just set it for the build required to deploy that particular version, so you don't accidentally leave the dry run mode enabled.
# Default: false
-b, --broker-base-url=BROKER_BASE_URL # The base URL of the Pact Broker
-u, [--broker-username=BROKER_USERNAME] # Pact Broker basic auth username
-p, [--broker-password=BROKER_PASSWORD] # Pact Broker basic auth password
-k, [--broker-token=BROKER_TOKEN] # Pact Broker bearer token
-v, [--verbose], [--no-verbose], [--skip-verbose] # Verbose output.
# Default: false
Description:
Checks if the specified pacticipant version is compatible with the configured
main branch of each of the pacticipants with which it is integrated.Matt (pactflow.io / pact-js / pact-go)
--latest
Unknown switches "--latest"
This is a warning rather than an error so as not to break backwards compatibility. To raise an error for unknown options set PACT_BROKER_ERROR_ON_UNKNOWN_OPTION=trueMatt (pactflow.io / pact-js / pact-go)