Skip to content

Add --ci-provider flag to setup-ci command #289

Description

@KryptosAI

What

The setup-ci command / initCi() already supports 5 CI providers internally (GitHub Actions, GitLab CI, CircleCI, Bitbucket, Azure DevOps) but there's no CLI flag to select one. Auto-detection works, but users can't override.

Add a --ci-provider flag:

$ mcp-observatory setup-ci --all --ci-provider gitlab-ci
$ mcp-observatory setup-ci --all --ci-provider circleci
$ mcp-observatory setup-ci --all --ci-provider bitbucket-pipelines
$ mcp-observatory setup-ci --all --ci-provider azure-pipelines

Files

  • src/commands/init-ci.ts — the InitCiOptions interface already has ciProvider, just need to add the CLI option and wire it through the command registration.

Acceptance

  • --ci-provider flag accepts: github-actions, gitlab-ci, circleci, bitbucket-pipelines, azure-pipelines
  • Omitting the flag auto-detects as before
  • Invalid value shows clear error with valid options
  • Tests for flag parsing

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:cliCLI UX, command surface, and error messaginggood first issueGood for newcomers

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions