pact-foundation / pact_broker

Enables your consumer driven contracts workflow
http://pactflow.io
MIT License
708 stars 174 forks source link

Give more control over wip contract selection #696

Open canny[bot] opened 5 months ago

canny[bot] commented 5 months ago

When we ask broker for contracts to be verified we can use consumerVersionSelectors to narrow down the consumers version. It would be useful to have similar capabilities for WIP contracts selection. Currently it accepts only a date through includeWipPactsSince option.

Our current configuration using pact-ruby is the following:

honours_pacts_from_pact_broker do
  pact_broker_base_url  ...

  consumer_version_selectors [
    {consumer: 'My Consumer', tag: 'production', latest: true}
  ]

  include_wip_pacts_since '2020-12-01'
  enable_pending true
end

Currently, there is no way to exclude WIP pacts for consumer other than 'My Consumer'.

https://pact.canny.io/admin/board/feature-requests/p/give-more-control-over-wip-contract-selection

canny[bot] commented 5 months ago

This issue has been linked to a Canny post: Give more control over wip contract selection :tada: