Skip to main content

Examples & Use Cases

Real-world scenarios demonstrating CI-Copilot's pipeline generation workflow.


Basic: Create CI/CD Pipeline​

Objective: Generate a CI/CD pipeline for an existing repository.

The Request​

Create ci/cd pipeline for talkops-ai/ci-copilot

Flow​

  1. Context Detector connects to GitHub, fetches the repo, and analyzes it — language (Python), dependencies, existing CI
  2. Builds a CISpec with stages (lint, test, build)
  3. Presents the plan for approval (HITL gate 1)
  4. Policy Validator checks security and compliance
  5. Renderer generates GitHub Actions YAML, validates with actionlint
  6. Presents the final pipeline for approval (HITL gate 2)
  7. On approval, commits to a branch and opens a PR

With Specific Requirements​

Objective: Generate a pipeline with custom capabilities.

The Request​

Setup CI for my-org/payments-api with security scanning,
Docker image builds on push to main, and 80% coverage threshold.

What CI-Copilot Does​

  • Security scanning — Adds a security scan job (e.g., Trivy, Snyk)
  • Docker builds — Configures Docker build and push on push to main
  • Coverage threshold — Adds a test job with 80% coverage enforcement

The Context Detector infers the stack (e.g., Node.js, Python) and the Renderer produces idiomatic YAML with the requested capabilities.


Multi-Language Support​

CI-Copilot supports 8 languages out of the box:

LanguagePackage ManagerDetection
Node.jsnpm, yarn, pnpmpackage.json
Pythonpip, uv, poetrypyproject.toml, requirements.txt
Gogo modgo.mod
JavaMaven, Gradlepom.xml, build.gradle
RustCargoCargo.toml
RubyBundlerGemfile
PHPComposercomposer.json
.NETdotnet*.csproj

Example: Python FastAPI App​

Create GitHub Actions for my-org/fastapi-backend

CI-Copilot detects Python, uv/poetry, and generates:

  • Lint (ruff, mypy)
  • Test (pytest with coverage)
  • Build (Docker if Dockerfile exists)
  • Proper caching for pip/uv dependencies

Private Repositories​

CI-Copilot works with private repos. Your GITHUB_PERSONAL_ACCESS_TOKEN needs repo scope.

Create CI pipeline for my-org/private-app

The Context Detector uses the GitHub MCP Server with your PAT to fetch repo contents and create the PR.