https://pact.io logo
#general
Title
# general
s

Slackbot

06/09/2022, 1:59 PM
This message was deleted.
j

json

06/09/2022, 2:19 PM
Looks like there is a channel for #pactflow specific questions. You might want to cross-post there, you might get more responses.
y

Yousaf Nabi (pactflow.io)

06/09/2022, 2:23 PM
Yo, as @json as stated, #pactflow is the best channel for pactflow specific features. however the best way to publish provider contracts currently is with our CLI tools! Here are some hot of the press instructions Using docker https://github.com/pact-foundation/pact_broker-client#docker
Copy code
docker run --rm -v /${PWD}:/${PWD} -w ${PWD} -e PACT_BROKER_BASE_URL -e PACT_BROKER_TOKEN pactfoundation/pact-cli:0.50.0.28 pactflow publish-provider-contract \
      oas/swagger.yml \
      --provider "pactflow-example-bi-directional-provider-postman" \
      --provider-app-version 3a0994c \
      --branch test-pactflow-command \
      --content-type application/yaml \
      --verification-exit-code=0 \
      --verification-results newman/newman-run-report-2022-06-09-14-18-33-406-0.json \
      --verification-results-content-type text/plain\
      --verifier postman
if using pact-ruby-standalone https://github.com/pact-foundation/pact_broker-client#standalone-executable and follow this thread for cross-platform install
Copy code
./pact/bin/pactflow publish-provider-contract \
      oas/swagger.yml \
      --provider "pactflow-example-bi-directional-provider-postman" \
      --provider-app-version 3a0994c \
      --branch test-pactflow-command \
      --content-type application/yaml \
      --verification-exit-code=0 \
      --verification-results newman/newman-run-report-2022-06-09-14-03-30-715-0.json \
      --verification-results-content-type text/plain\
      --verifier postman
if using pact-broker_client https://github.com/pact-foundation/pact_broker-client#ruby
Copy code
pactflow publish-provider-contract \
      oas/swagger.yml \
      --provider "pactflow-example-bi-directional-provider-postman" \
      --provider-app-version 3a0994c \
      --branch test-pactflow-command \
      --content-type application/yaml \
      --verification-exit-code=0 \
      --verification-results newman/newman-run-report-2022-06-09-14-03-30-715-0.json \
      --verification-results-content-type text/plain\
      --verifier postman
Happy to take a look at the issue with your js example, probably later today