Édouard Lopez
06/24/2022, 1:36 PM2.99.0.0
, I'm able to publish a contract for new pacticipant, so there is probably a bug that have been introduce in later version (cf. https://pact-foundation.slack.com/archives/C9VPNUJR2/p1654006134133589)Beth (pactflow.io/Pact Broker/pact-ruby)
Édouard Lopez
06/27/2022, 9:50 AM"name": "web-pro-product-page"
, I have no name
nor displayName
but repositoryUrl
and mainBranch
.Édouard Lopez
06/27/2022, 9:51 AM_links
object I have items like:
{
"href": "<http://pact.broker.foo/pacticipants/>",
"title": "Pacticipant",
"name": null
},
Édouard Lopez
06/27/2022, 9:53 AMrepositoryUrl
probably come from this curl request I use:
# Fish Shell function
function pact-set-repo-metadata --description 'Set repo URL and Main branch to a repo' --argument consumer_name
set PACT_REPO_URL https://(git remote get-url origin | sed -e 's/git@//' -e 's/:/\//' -e 's/.git//')
set PACT_REPO_MAIN_BRANCH (git rev-parse --abbrev-ref origin/HEAD | cut -c8-)
curl \
--verbose \
--location \
--request PATCH \
--header "Content-Type:application/json" \
--data '{"repositoryUrl": "'$PACT_REPO_URL'", "mainBranch": "'$PACT_REPO_MAIN_BRANCH'"}' \
$PACT_BROKER_BASE_URL/pacticipants/$consumer_name
end
Beth (pactflow.io/Pact Broker/pact-ruby)