microsoft / azure-pipelines-yaml

Azure Pipelines YAML examples, templates, and community interaction
MIT License
1.21k stars 934 forks source link

change 'main' to '{{ defaultBranch }}' #520

Closed KetchupOnMyKetchup closed 3 years ago

KetchupOnMyKetchup commented 3 years ago

"In their current form, the YAML pipeline templates hardcode "master" as the default triggering branch. Now that customers can specify their default branch, we should be able to leave that as a symbol in the template and have the setup wizard replace it with the actual (or chosen) default branch name." https://dev.azure.com/mseng/AzureDevOps/_workitems/edit/1765369