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 view checks wrong repo #611

Open maxice8 opened 3 years ago

maxice8 commented 3 years ago

Description

When using glab mr view I am helpfully inducted to use glab ci view <branch> to see the CI.

Unfortunely it checks for in the repo where the Merge Request was made, not in the repo where the merge request was made from.

If I have a merge request that targets alpine/aports where I pushed the branch to Leo/aports it will fail unless I do -R gitlab.alpinelinux.org/Leo/aports.

Possible Fix

Recognize when a Pipeline is running in head repo instead of the base repo

Logs

foo@bar:~$ glab ci view net-snmp
GET https://gitlab.alpinelinux.org/api/v4/projects/alpine/aports/repository/commits/net-snmp: 404 {message: 404 Commit Not Found}

Your Environment

clemsbot commented 3 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.

maxice8 commented 3 years ago

While this does not stop work it makes it glab ci view broken when looking at any contributor and requires an unintuitive workaround

clemsbot commented 3 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.