Hi guys, in past we had to set the default branch ...
# pact-broker
j
Hi guys, in past we had to set the default branch for given pacticipant. We used
Copy code
pact-broker create-or-update-pacticipant --name=pacticipnat --main-branch=main
Now I would like to remove the setting and leave empty to use default according to auto_detect_main_branch and main_branch_candidates But I did not find a way how to remove previously set
Main branch
by cli. Do you know any way please?
m
good question. I haven’t tried this, but it might be possible by making a direct API call and either setting it to
null
or omitting that field (bad on me, but I actually can’t remember which pattern we use there)
👀 1
j
Thanks. I used PUT
Copy code
{
  "name": "...",
  "displayName": "..."
}
And it helped.
nice 7771 1