Skip to content

Allow for custom naming of .gitlab-ci.yml file for autocomplete recognition

Problem to solve

I would like to use the auto completion for CI variables thing developed a few months ago, but we have broken down our pipelines into different files with different names.

Proposal

My proposal is to change the glob pattern for the registerCiCompletion function to be: '**/.gitlab-ci*(.*).{yml,yaml}'. That would match the following:

  • .gitlab-ci.yml
  • test/dir/.gitlab-ci.yml
  • dir/.gitlab-ci.dev.yml
  • .gitlab-ci.prod.yml
  • .gitlab-ci.sandbox.yml

Further details

Perhaps we are the only place that actually breaks apart their pipelines into other files that get called from the main .gitlab-ci.yml file, in which case this change wouldn't be useful to many people at all.

And maybe it would be BEST to allow for a configuration setting that would allow for a user to set the glob pattern so that the user can modify to fit whatever they might be doing?

Links / references