Skip to content

ci(openapi): fail the staleness check only on PRs that change the schema - #412

Merged
lumpinif merged 1 commit into
mainfrom
ci/openapi-check-scope
Nov 26, 2026
Merged

lumpinif merged 1 commit into
mainfrom
ci/openapi-check-scope

Conversation

@lumpinif

@lumpinif lumpinif commented Nov 25, 2026 •

Copy link
Copy Markdown
Contributor

check-openapi pulls https://api.fish.audio/openapi.json on every PR and fails if it differs from api-reference/openapi.json. Whenever the live API moves ahead of main, every open PR goes red, including PRs that never touch the schema and cannot fix it. The fix lives in a separate bot PR, and the live schema can move again minutes after that is merged (#408 → #411).

Last 30 days: 137 of 224 runs on PRs that do not change the schema failed, and 46 of 95 merged PRs were merged with this check red.

This change keeps the protection where it matters and stops the noise elsewhere:

  • PRs that change api-reference/openapi.json still fail when the file differs from the live schema.
  • PRs that do not change it get a warning that main is behind, and the check passes. The chore: update OpenAPI schema PR still brings main up to date.
  • The committed schema is now validated with mint openapi-check on every PR. Before, only the downloaded live schema was validated.
  • If the live schema cannot be fetched, PRs that do not change the schema get a warning instead of a failure.

Whether a PR changes the schema is read from the merge commit (HEAD^1 is the tip of main), so no token or API call is needed. The update-openapi job is unchanged.

After this merges, open PRs that were red only because of the schema (#402, #410) need a new run, such as a push or "Update branch". Re-running an old run uses the old merge commit and the old workflow.


Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.

PRs that leave api-reference/openapi.json alone failed check-openapi
whenever the live API schema moved ahead of main, which happens every
few days. Those PRs now get a warning instead; PRs that change the file
still fail when it differs from the live schema. The committed schema is
validated on every PR, and a failed fetch of the live schema no longer
fails PRs that do not change it.

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

mintlify Bot commented Nov 25, 2026 •

Copy link
Copy Markdown
Contributor

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

Project Status Preview Updated
hanabiaiinc 🟢 Ready View Preview Nov 25, 2026, 6:48 AM

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

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 25, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-25T06:48:52.587014Z 268003d PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@coderabbitai

coderabbitai Bot commented Nov 25, 2026

Copy link
Copy Markdown

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 35 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 63702569-653c-4220-b4c5-c21eae5c4aee
Commits

Reviewing files that changed from the base of the PR and between 1773bf8 and 268003d.

Files selected for processing: 1

  • .github/workflows/openapi-schema.yaml
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@lumpinif
lumpinif requested a review from abersheeran November 26, 2026 03:05
@lumpinif
lumpinif merged commit fdfdf0a into main Nov 26, 2026
7 checks passed
@lumpinif
lumpinif deleted the ci/openapi-check-scope branch November 26, 2026 12:18

This branch was successfully deployed

1 active deployment
staging — 268003d0 Deployed Nov 25, 2026 by mintlify[bot]
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