Skip to content
This repository was archived by the owner on Nov 22, 2022. It is now read-only.
This repository was archived by the owner on Nov 22, 2022. It is now read-only.

glab ci run - should auto-detect CI_DEFAULT_BRANCH #1005

Description

@tis-rpage

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingstale

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions