commercetools / merchant-center-application-kit

Tools and components for developing Merchant Center Customizations πŸ› 
https://docs.commercetools.com/merchant-center-customizations
MIT License
66 stars 27 forks source link

New cli command to manage deployment previews configuration #3541

Closed CarlosCortizasCT closed 1 month ago

CarlosCortizasCT commented 1 month ago

Summary

Start work towards improving the Custom Applications deployment previews feature by adding a new command which will allow consumers to create/update deployments previews from the command line using our existing mc-scripts cli.

Description

There are internal teams with some challenges that could greatly benefit of having a better non-human interaction integration with Custom Applications deployment previews. We do currently support this feature by manually adjusting some configuration in the Merchant Center UI, but it would be great if that configuration could be automatically updated from CI when a new feature-branch in created in a repository.

In order to achieve that we need to tackle different things but, as part of our X&X days, I wanted to start with this one which would allow for a logged-in user to create or update a new Custom Application deployment preview using the CLI:

# mc-scripts deployment-previews:set --alias my-alias --url https://www.nowhere.com

(if the arguments are not provided, the command will prompt for them)

This could allow consumers to automatically trigger from their CI the creation/update of a Custom Application deployment preview for any given created branch without human intervention.

This steps still required a CLI logged-in user to run this command, but it's a first step towards the end goal.

vercel[bot] commented 1 month ago

The latest updates on your projects. Learn more about Vercel for Git β†—οΈŽ

Name Status Preview Comments Updated (UTC)
mc-app-kit-playground βœ… Ready (Inspect) Visit Preview πŸ’¬ Add feedback Jun 19, 2024 7:48am
merchant-center-application-kit-components-playground βœ… Ready (Inspect) Visit Preview πŸ’¬ Add feedback Jun 19, 2024 7:48am
changeset-bot[bot] commented 1 month ago

πŸ¦‹ Changeset detected

Latest commit: 7f7ca8384ed5c9bcbc5764c4a6538071e9764e13

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 36 packages | Name | Type | | ----------------------------------------------------------------------------------- | ----- | | @commercetools-frontend/mc-scripts | Minor | | @commercetools-applications/merchant-center-template-starter-typescript | Minor | | @commercetools-applications/merchant-center-template-starter | Minor | | @commercetools-applications/merchant-center-custom-view-template-starter-typescript | Minor | | @commercetools-applications/merchant-center-custom-view-template-starter | Minor | | @commercetools-local/playground | Minor | | @commercetools-backend/eslint-config-node | Minor | | @commercetools-backend/express | Minor | | @commercetools-backend/loggers | Minor | | @commercetools-frontend/actions-global | Minor | | @commercetools-frontend/application-components | Minor | | @commercetools-frontend/application-config | Minor | | @commercetools-frontend/application-shell-connectors | Minor | | @commercetools-frontend/application-shell | Minor | | @commercetools-frontend/assets | Minor | | @commercetools-frontend/babel-preset-mc-app | Minor | | @commercetools-frontend/browser-history | Minor | | @commercetools-frontend/codemod | Minor | | @commercetools-frontend/constants | Minor | | @commercetools-frontend/create-mc-app | Minor | | @commercetools-frontend/cypress | Minor | | @commercetools-frontend/eslint-config-mc-app | Minor | | @commercetools-frontend/i18n | Minor | | @commercetools-frontend/jest-preset-mc-app | Minor | | @commercetools-frontend/jest-stylelint-runner | Minor | | @commercetools-frontend/l10n | Minor | | @commercetools-frontend/mc-dev-authentication | Minor | | @commercetools-frontend/mc-html-template | Minor | | @commercetools-frontend/notifications | Minor | | @commercetools-frontend/permissions | Minor | | @commercetools-frontend/react-notifications | Minor | | @commercetools-frontend/sdk | Minor | | @commercetools-frontend/sentry | Minor | | @commercetools-frontend/url-utils | Minor | | @commercetools-local/visual-testing-app | Minor | | @commercetools-website/components-playground | Minor |

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

gitstream-cm[bot] commented 1 month ago

This PR is missing a Jira ticket reference in the title or description. Please add a Jira ticket reference to the title or description of this PR.

gitstream-cm[bot] commented 1 month ago

πŸ₯· Code experts: no user matched threshold 10

See details

To learn more about /:\ gitStream - Visit our Docs