Skip to content

docs: gaze init --ci scaffolds the AI-report caller workflow #352

Open

Description

@jflowers

What changed

gaze init gained a --ci flag (plus a --gaze-version override) that scaffolds .github/workflows/gaze-ai-report.yml — a self-contained starter caller for gaze's reusable AI-report workflow (reusable_gaze_ai_report.yml, first shipped in gaze v2.3.0). The generated workflow owns its own test job (checkout → setup-go → go test -race -count=1 -short -coverprofile=coverage.out ./... → upload-artifact) and calls the reusable workflow with the coverage artifact and the OPENCODE_CONFIG_CONTENT secret.

Key semantics to document:

  • Threshold inputs are emitted commented out — the workflow is report-only until a human uncomments values (governance gates stay human-owned).
  • The file is user-owned after first write: re-running gaze init --ci skips it; only --force regenerates it.
  • The uses: pin is validated >= v2.3.0; dev builds fail closed with guidance; --gaze-version overrides with the same validation (requires --ci).
  • The workflow's Go version is read from the module's go.mod go directive (fallback: the reusable workflow's default, with a warning).
  • Requires a Go module at the repository root; otherwise CI scaffolding is skipped with a warning and the .opencode/ scaffolding proceeds.
  • The console prints a "CI next steps" section after scaffolding: secret-setup one-liner, jq -c . minify tip, second-secret masking pointer, and a threshold-selection prompt.

Tracking unbound-force/gaze#306.

Why it matters

This is the preferred CI adoption path for gaze AI reports — one command instead of hand-writing caller YAML. Website content describing CI integration should lead with it.

Pages needing updates

  • CI integration / GitHub Actions guide pages: present gaze init --ci as the preferred adoption path ahead of the hand-written consumer example; note the report-only-by-default thresholds and user-owned file semantics.
  • CLI reference for gaze init (if mirrored on the site): document --ci and --gaze-version.
  • Quickstart/install pages that mention gaze init.

Activity

  1. added 4 commits that reference this issue on Oct 31, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions