fix(mr ci): use gitlab api to fetch default branch with fallback to main when...
-
Please check this box if this contribution uses AI-generated content (including content generated by GitLab Duo features) as outlined in the GitLab DCO & CLA. As a benefit of being a GitLab Community Contributor, you receive complimentary access to GitLab Duo.
Description
Added API-based branch resolution with fallback to main
- fix(mr ci): use gitlab api to fetch default branch with fallback to main when using -R flag outside repo
Related Issues
Resolves #7700 (closed)
How has this been tested?
- Added tests for new branch resolution functionality
- Tested locally by building CLI
Screenshots (if appropriate):
Types of changes
-
Bug fix (non-breaking change which fixes an issue) -
New feature (non-breaking change which adds functionality) -
Breaking change (fix or feature that would cause existing functionality to change) -
Documentation -
Chore (Related to CI or Packaging to platforms) -
Test gap
Closes #7700 (closed) Closes #3455 (closed)
Edited by Munish