Cannot pass ci job variable value with a comma

Checklist

  • I'm using the latest version of the extension (Run glab --version)
    • Extension version: 1.52.0
  • Operating system and version: OpenSUSE Tumbleweed
  • Gitlab.com or self-managed instance? gitlab.com
  • I have performed glab auth status to check for authentication issues
  • Run the command in debug mode (like DEBUG=true glab mr list) and attach any useful output

Summary

Passing a variable value for ci run with a comma fails with:

parsing pipeline variable expected format KEY:VALUE: invalid argument structure

According to one example in https://gitlab.com/gitlab-org/cli/-/blob/main/docs/source/ci/run.md , this might be related to comma being used to separate multiple variables - key1:val1,key2:val2. This isn't actually documented - only alluded to in that one example.

Tried various quoting (double/single quotes, whole parameter, value only etc), escaping the comma.

Environment

  • OS: Linux 6.13.1-1-default x86_64
  • SHELL: /bin/bash
  • TERM: xterm-256color
  • GLAB: Current glab version: 1.52.0

Steps to reproduce

Run a command like `glab ci run --variables var:value,here

What is the current bug behavior?

Fails with:

parsing pipeline variable expected format KEY:VALUE: invalid argument structure

What is the expected correct behavior?

Some way to pass values with commas.

Edited by Rihards Olups