After importing eShopOnWeb, DevOps sets the default branch implicitly, often choosing a Dependabot branch, which makes labs difficult for learners. We should add steps to the lab to set the default branch as main explicitly. This step is already in labs such as the feature flag lab and should be propagated thru the rest of the labs.
Lab
Other
Relevant screenshots
Example:
Task 2: (skip if done) Import eShopOnWeb Git Repository
In this task you will import the eShopOnWeb Git repository that will be used by several labs.
On your lab computer, in a browser window open your Azure DevOps organization and the previously created eShopOnWeb project. Click on Repos>Files , Import. On the Import a Git Repository window, paste the following URL https://github.com/MicrosoftLearning/eShopOnWeb.git and click on Import:
The repository is organized the following way:
.ado folder contains Azure DevOps YAML pipelines.
.devcontainer folder container setup to develop using containers (either locally in VS Code or GitHub Codespaces).
infra folder contains Bicep&ARM infrastructure as code templates used in some lab scenarios.
Contact Details
robfoulkrod@microsoft.com
What should we change?
After importing eShopOnWeb, DevOps sets the default branch implicitly, often choosing a Dependabot branch, which makes labs difficult for learners. We should add steps to the lab to set the default branch as main explicitly. This step is already in labs such as the feature flag lab and should be propagated thru the rest of the labs.
Lab
Other
Relevant screenshots
Example:
Task 2: (skip if done) Import eShopOnWeb Git Repository
In this task you will import the eShopOnWeb Git repository that will be used by several labs.
On your lab computer, in a browser window open your Azure DevOps organization and the previously created eShopOnWeb project. Click on Repos>Files , Import. On the Import a Git Repository window, paste the following URL https://github.com/MicrosoftLearning/eShopOnWeb.git and click on Import:
The repository is organized the following way:
Task 3: (skip if done) Set main branch as default branch
Task 3 should be standard in the import process