Repository navigation
ci(openapi): fail the staleness check only on PRs that change the schema - #412
Conversation
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>
|
Preview deployment for your docs. Learn more about Mintlify Previews.
💡 Tip: Enable Automations to automatically generate PRs for you. |
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
Warning Review limit reachedYou'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. View limit details
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. |
check-openapipulls https://api.fish.audio/openapi.json on every PR and fails if it differs fromapi-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:
api-reference/openapi.jsonstill fail when the file differs from the live schema.chore: update OpenAPI schemaPR still brings main up to date.mint openapi-checkon every PR. Before, only the downloaded live schema was validated.Whether a PR changes the schema is read from the merge commit (
HEAD^1is the tip of main), so no token or API call is needed. Theupdate-openapijob 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-botwith what you need.