Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use "all in one" endpoint to publish pacts #1452

Closed
bethesque opened this issue Sep 29, 2021 · 1 comment
Closed

Use "all in one" endpoint to publish pacts #1452

bethesque opened this issue Sep 29, 2021 · 1 comment

Comments

@bethesque
Copy link
Member

bethesque commented Sep 29, 2021

There is a new "all in one" api that can be used to publish contracts in a single call. The docs are here

The benefits of using this endpoint are:

  • One HTTP call - no partial failures
  • The notices to print to the user will tell them what they need to do next in the set up/development process (eg. add provider tests, create a webhook) etc and will help us with our product led growth approach.

The endpoint is designed to be used by a CLI, and returns a collection of notices to be printed to stdout for the user. The pact broker client uses the following colours for each notice, and it would be good to keep that the same across implementations. level https://github.com/pact-foundation/pact_broker-client/blob/2a51e37/lib/pact_broker/client/colorize_notices.rb#L21

case type
when "warning", "prompt" then "yellow"
when "error", "danger" then :red
when "success" then :green
else nil
end
@uglyog
Copy link
Member

uglyog commented Jan 12, 2022

Released 4.3.4/4.2.19/4.1.33

@uglyog uglyog closed this as completed Jan 12, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants