Skip to content

Commit

Permalink
Merge pull request #405 from pact-foundation/chore/support-publish-fr…
Browse files Browse the repository at this point in the history
…om-env-var

feat: support PACT_BROKER_PUBLISH_VERIFICATION_RESULTS
  • Loading branch information
mefellows committed Sep 6, 2022
2 parents d0a76df + 64872ae commit a194088
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/verifier/argumentMapper/arguments.ts
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,11 @@ export const ffiFnMapping: FnMapping<
},
pactffiVerifierSetPublishOptions: {
validateAndExecute(ffi, handle, options) {
if (options.publishVerificationResult && options.providerVersion) {
if (
(options.publishVerificationResult ||
process.env.PACT_BROKER_PUBLISH_VERIFICATION_RESULTS) &&
options.providerVersion
) {
ffi.pactffiVerifierSetPublishOptions(
handle,
options.providerVersion,
Expand Down

0 comments on commit a194088

Please sign in to comment.