Skip to content

Commit

Permalink
Minor changes in response to PR comments
Browse files Browse the repository at this point in the history
  • Loading branch information
Ben Thorner committed May 3, 2022
1 parent 3cb710b commit 54d61fb
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions docs/versioning.md
Expand Up @@ -2,15 +2,15 @@

Out of the box, the Pact Broker allows uploading of pact files with semver
style versions (eg 2.0.1). For our usage, we wanted to be able to upload pact
files from various branches in addition the released versions so that our
branch builds of consumers can verify their pactfiles with the producers.
files from various branches in addition to the released versions so that our
branch builds of consumers can verify their pactfiles with the providers.

Pact Broker allows us to [implement our own versioning
scheme](https://github.com/bethesque/pact_broker/wiki/Configuration#version-parser)
by providing a custom version parser. We've [used
this](https://github.com/alphagov/govuk-pact-broker/blob/master/config.ru#L23-L50)
by providing a custom version parser. We've [used
this](https://github.com/alphagov/govuk-pact-broker/blob/main/config.ru#L23-L50)
to extend the versioning scheme to allow branch builds to be uploaded as well.
In addition to numeric versions, our scheme allows for "master", and
In addition to numeric versions, our scheme allows for "main", and
"branch-foo" versions to be uploaded. These will always be ordered after any
numeric versions, so the 'latest' pactfile from the pact brokers POV will
numeric versions, so the 'latest' pactfile from the Pact Broker's point of view will
always be the highest numeric version.

0 comments on commit 54d61fb

Please sign in to comment.