This feature has been released, have a look at my message below for more details!
to improve the user experience while using the preview environments, we are adding some cool functionalities that will let you spawn a preview environment on demand, directly from your Pull Request/Merge Request (here the Roadmap item)
Today, if the preview environment feature is activated, a preview environment is created for every pull request. While it keeps simple to create a preview environment, it has the drawback to create a preview environment even when you don’t really need one (example: you have updated a README file )
This is why we will add soon a new option in the preview environment configuration to decide whether or not a preview environment should be triggered manually or at every PR
When the preview environment feature and this flag are activated, the preview environment won’t be created automatically. Instead the flow will go this way:
a message is dropped on your PR asking you if you want to create a preview environment or not. You will get the list of environments where the preview env feature is activated (in case you have multiple environments) and the command to add as a comment of your PR to trigger the preview.
you will have to add the command in a comment to trigger the preview
the preview creation is triggered and your preview environment is deployed
note: we had to change a little bit the flow vs what I shared in the first message due to some limitations on the different git providers we support where the “click” or edit on comments were not sent via the webhook systems