Shan
08/09/2022, 4:59 PMfeature branch to merge to master if pre-verification fails?
Because can-i-deploy command is to check whether a code can be deployed to a specific env (dev, test, prod and etc..) or not. Which means a non-verified contract can be merged to master there is no check to enforce that. Should we check with can-i-deploy command before the code get merged to master?Stefano Lucka
08/09/2022, 5:09 PMStefano Lucka
08/09/2022, 5:10 PMShan
08/09/2022, 5:14 PMtags are deprecated in that case do we have to create an environment to represent master/any stable branch. can-i-deploy requires an environment isn't it?Stefano Lucka
08/09/2022, 5:48 PMenvironment only, consider readme: https://docs.pact.io/pact_broker/client_cli/readme#can-i-deployStefano Lucka
08/09/2022, 5:49 PMenvironment and branch now, as its more readable and tends to confuse people less compared to `tag`s that get confused with the GIT concept.Shan
08/09/2022, 5:56 PMcontract requiring verification published web-hook event from contract content changed event. From their doc they recommend use main branch and environment. Thank you for your guidance I should have read the docs properly lolStefano Lucka
08/09/2022, 5:57 PMcan-i-deploy to check your other environments for sure, e.g. prod sounds reasonableStefano Lucka
08/09/2022, 5:58 PMcan-i-deploy togetherShan
08/09/2022, 6:02 PMcan-i-deploy checks for dev environments and prod but I didn't have a check (can-i-deploy) for feature branch to master for consumers.Beth (pactflow.io/Pact Broker/pact-ruby)
Beth (pactflow.io/Pact Broker/pact-ruby)
Beth (pactflow.io/Pact Broker/pact-ruby)
Shan
08/10/2022, 4:37 AMPR branches will be merged into master branch then we deploy the master to dev environment. I think I can validate a new contract can-i-deploy with --branch PR BRANCH before it gets merged with masterShan
08/10/2022, 4:42 AMcan-i-merge command available? Looks like it is still in progress right? https://pact.canny.io/feature-requests/p/add-can-i-merge-functionalityShan
08/10/2022, 4:46 AMcan-i-deploy --branch PR-PROVIDER) ? I think we don't need thatBeth (pactflow.io/Pact Broker/pact-ruby)
Beth (pactflow.io/Pact Broker/pact-ruby)
Beth (pactflow.io/Pact Broker/pact-ruby)
Beth (pactflow.io/Pact Broker/pact-ruby)
Beth (pactflow.io/Pact Broker/pact-ruby)
Beth (pactflow.io/Pact Broker/pact-ruby)
Beth (pactflow.io/Pact Broker/pact-ruby)
can-i-deploy --pacticipant $APP_NAME --version $GIT_SHA --to-environment dev will tell you when it’s safe to deploy from main into dev when you’re on main, and will tell you when it’s safe to merge feature branch into main when it’s on a feature branch.Shan
08/10/2022, 5:38 PMShan
08/10/2022, 5:38 PMDavid Hvilava
09/26/2022, 6:50 PMBeth (pactflow.io/Pact Broker/pact-ruby)
Beth (pactflow.io/Pact Broker/pact-ruby)
Beth (pactflow.io/Pact Broker/pact-ruby)
--to TAG or --to-environment ENV