Hey there.
Unless you specify the branch, the main branch is being returned.
branch
Check out this script written by my colleague to iterate through all branches of a project: