glab
glab copied to clipboard
glab ci run - should auto-detect CI_DEFAULT_BRANCH
Description glab ci run defaults to master instead of auto-detecting the CI_DEFAULT_BRANCH from gitlab.
Expected Behavior vs Actual Behavior
glab ci run - with default main branch, it executes a pipeline
actual behavior is that it returns a 400 reference not found error
Possible Fix GET /projects/:id | yq .default_branch
Steps to Reproduce
Set main as default branch for project
Run glab ci run
This issue has been automatically marked as stale because it has not had recent activity. We haven't had the time to address it yet, but we want to keep it open. This message is just a reminder for us to help triage issues.