There are some cases where the default_branch
is not available in the runner environment, This leads to no history of commits.
This change attempts to identify the default branch in this scenarios and error the user if the attempt fails and default_branch
remains null