glab ci run --variables-from broken

Checklist

  • I'm using the latest version of the extension (Run glab --version)
    • Extension version: 1.50
  • 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

glab ci run --variables-from cannot parse json files.

Steps to reproduce

Create variables.json

{
  "CI_PIPELINE_SOURCE": "web"
}

run glab ci run --variables-from variables.json

What is the current bug behavior?

loading pipeline values: json: cannot unmarshal object into Go value of type []*gitlab.PipelineVariableOptions

What is the expected correct behavior?

Running as glab ci run --variables-env CI_PIPELINE_SOURCE:web

Possible fixes

https://gitlab.com/gitlab-org/cli/-/blob/main/commands/ci/run/run.go#L127

I can't find what PipelineVariableOptions is meant to be.

Assignee Loading
Time tracking Loading