Skip to content

CI: run docs pipeline when the API spec changes#392

Open
shirgoldbird wants to merge 2 commits into
mainfrom
add-docs-pipeline-ci
Open

CI: run docs pipeline when the API spec changes#392
shirgoldbird wants to merge 2 commits into
mainfrom
add-docs-pipeline-ci

Conversation

@shirgoldbird

Copy link
Copy Markdown
Member

Adds .github/workflows/docs-pipeline.yml so the agentic docs pipeline runs automatically when the API spec changes.

Trigger — spec change only

  • push to main touching the spec: openapi.yaml/.json and voice.asyncapi.yaml/.json (same set the spec-sync workflow watches).
  • workflow_dispatch for manual runs (optional section to scope, dry_run to rehearse).
  • No cron — a spec change is the only automatic entry point, by design.

What it runs

python pipeline/run.py generate → detect → generate → evaluate → review → promote → ship → post_review. run.py auto-passes --yes to ship, so a run opens a docs PR.

Required before it works

  • Add repo secret ANTHROPIC_API_KEY (Settings → Secrets → Actions). The pipeline can't call Claude without it. GITHUB_TOKEN (for gh) is provided automatically.

Notes

  • No infinite loop: the pipeline opens docs PRs (docs/*.mdx + docs.json), which don't touch the spec, so merging them won't retrigger.
  • Scope: a push runs a full audit (all families), which can be a large PR. Use workflow_dispatch with section to scope; scoping push runs to the changed spec area is a future refinement.
  • validate (code-sample execution) isn't built yet, so it's not in the chain — same as running run.py locally today.

🤖 Generated with Claude Code

Add .github/workflows/docs-pipeline.yml. It triggers on pushes to main that
touch the API spec (openapi.yaml/json, voice.asyncapi.yaml/json) — plus manual
workflow_dispatch. No schedule/cron: a spec change is the sole automatic entry
point. Runs `pipeline/run.py generate`, which chains
detect → generate → evaluate → review → promote → ship → post_review and opens a
docs PR (ship gets --yes automatically). Requires an ANTHROPIC_API_KEY secret.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
@mintlify

mintlify Bot commented Jul 8, 2026

Copy link
Copy Markdown
Contributor

Preview deployment for your docs. Learn more about Mintlify Previews.

Project Status Preview Updated (UTC)
deepl-c950b784 🟢 Ready View Preview Jul 8, 2026, 9:02 PM

💡 Tip: Enable Workflows to automatically generate PRs for you.

The .json specs are auto-generated from the .yaml sources on the PR and merge
in the same commit, so watching the YAML sources alone catches every spec
change without any chance of a double trigger.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant