When I use the following API:
https://dev.azure.com/{organization}/{project}/_apis/git/repositories/{repositoryId}/stats/branches?api-version=6.0
The response contains a key called isBaseVersion. Does this always indicate the default branch?
WARNING: This may be the accepted answer, but it is false. Multiple branches can be marked isBaseVersion : true
. This field does not indicate the default branch.
Does this always indicate the default branch?
Yes. This parameter(isBaseVersion
) indicates the default branch.
When the value is true, this means that the branch is the default branch.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With