profclems / glab

The GitLab CLI tool. Archived: now officially adopted by GitLab as the official CLI tool and maintained at https://gitlab.com/gitlab-org/cli. See https://github.com/profclems/glab/issues/983
https://glab.readthedocs.io/
MIT License
2.08k stars 163 forks source link

glab ci run - should auto-detect CI_DEFAULT_BRANCH #1005

Open tis-rpage opened 2 years ago

tis-rpage commented 2 years ago

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

clemsbot commented 2 years ago

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.