Skip to content
Source
Sign inSign up
pingdotgg/t3code

[Bug]: GitLab merge requests can't edit their labels #30482

ClosedTonybynMp4(GitHub profile, opens in a new tab) opened this issue 0 comments

Area

Pull requests (GitLab provider)

Steps to reproduce

  1. Open a GitLab merge request you can edit in Pull requests. I used !5 on TonybynMp4/git-ansible, which has the project labels bug, documentation and enhancement.
  2. Look at the Summary tab.

Expected behavior

A Labels row with a picker, the same one GitHub pull requests have.

Actual behavior

No Labels row and no way to add one. The GitLab provider never sets the labels capability and implements neither listLabelCandidates nor setLabels, so web and mobile hide the picker.

GitLab tells us whether the viewer may change labels:

$ glab api graphql -f query='{ project(fullPath: "TonybynMp4/git-ansible") { mergeRequest(iid: "5") { labels { nodes { title } } userPermissions { adminMergeRequest } } } }' | jq -c .data
{"project":{"mergeRequest":{"labels":{"nodes":[]},"userPermissions":{"adminMergeRequest":true}}}}

Impact

Labels set the triage and pipeline rules on many GitLab projects. Today they have to be changed on GitLab.

Version or commit

7c22e24e3f (main)

Environment

Linux, web dev build, gitlab.com through glab.

Screenshots, recordings, or supporting files

On main, !5's Summary tab has no Labels row:

Image No label row

Workaround

Edit labels on GitLab or with glab mr update <n> --label <name>.

  1. juliusmarminge closed this

Sign in to join this conversation.