I have a repo in azure and it has the default branch "main".
Also, I have a task in yml file for semantic versioning.
- task: gittools.gitver