Supporting explicit branches #382
bethesque
started this conversation in
New Features
Replies: 2 comments 3 replies
-
@bethesque I am assuming under the hood "branch" will still just be a normal tag, right? Also what is |
Beta Was this translation helpful? Give feedback.
3 replies
-
@YOU54F just tagging in so I can track this |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Tags have traditionally been used to represent git branches and deployment stages/environments in the Pact Broker. While tags are extremely flexible and do technically support our workflows, they are somewhat abstract and cognitively harder to understand than having explicit "branch" and "deployment environment" supported as top level concepts.
I have recently added a
branch
property to the version resource that will allow us to reference versions and pacts by "latest from branch X' in URLs and consumer version selectors. eg./pacts/provider/{provider}/consumer/{consumer}/branch/{branch}/latest
(this URL is not implemented as of 4 Feb 2020, but will be soon) and{"branch": "main", latest: true}, {"branch": "feat/x", latest: true}
(the consumer version selector support is done, but not released as of 4 Feb 2020).WIP and pending pacts will support the calculations based on the consumer/provider branches where they are provided, and fall back to tags when not.
Technical info:
branch
andfallbackBranch
providerVersionBranch
propertypb:pacticipant-version
relation in the index now which should be used:Feature request: https://pact.canny.io/feature-requests/p/support-explicit-branches-and-stages
PR: #371
Beta Was this translation helpful? Give feedback.
All reactions