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

glab ci run - should auto-detect CI_DEFAULT_BRANCH #1005

Open
tis-rpage opened this issue Jul 5, 2022 · 1 comment
Open

glab ci run - should auto-detect CI_DEFAULT_BRANCH #1005

tis-rpage opened this issue Jul 5, 2022 · 1 comment
Labels
bug Something isn't working stale

Comments

@tis-rpage
Copy link

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

@tis-rpage tis-rpage added the bug Something isn't working label Jul 5, 2022
@clemsbot
Copy link
Collaborator

clemsbot commented Aug 5, 2022

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.

@clemsbot clemsbot added the stale label Aug 5, 2022
ashumkin pushed a commit to ashumkin/glab that referenced this issue Sep 6, 2023
ci: add unit test task to the CI

Closes profclems#1005

See merge request gitlab-org/cli!999
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working stale
Projects
None yet
Development

No branches or pull requests

2 participants