-
Notifications
You must be signed in to change notification settings - Fork 268
fix-metadata-validation #1418
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix-metadata-validation #1418
Conversation
-Made validation non-blocking by always exiting with 0, CircleCI step now optional - Added helpful instructions for fixing - Listed commands to run - Used yellow color for warnings instead of red
✅ Deploy Preview for docs-optimism ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
📝 WalkthroughWalkthroughThe changes modify the error handling for metadata validation in two parts of the project. In the CircleCI configuration, the lint job step is renamed from "Validate metadata" to "Metadata Validation (Warning Only)". The command in this step is updated to print an informative message before running the metadata validation and uses the Sequence Diagram(s)sequenceDiagram
participant CC as CircleCI
participant JL as Lint Job Step
participant CMD as Command Shell
CC->>JL: Trigger lint job
JL->>CMD: Execute echo "Running metadata validation (warnings will not block PR)..."
CMD-->>JL: Print message
JL->>CMD: Execute "pnpm validate-pr-metadata || true"
CMD-->>JL: Return result (errors ignored)
JL->>CC: Report step completion (success)
sequenceDiagram
participant CLI as CLI Invoker
participant VF as validateFiles Function
participant File as File Validator
CLI->>VF: Invoke validateFiles(files)
loop For each file
VF->>File: Validate file
File-->>VF: Return validation result
alt Validation fails
VF->>VF: Log warning with error details and fix instructions
end
end
alt Exception occurs in processing
VF->>VF: Catch exception and log warning
end
VF->>CLI: Exit with status code 0
Suggested reviewers
📜 Recent review detailsConfiguration used: .coderabbit.yaml 📒 Files selected for processing (2)
🔇 Additional comments (7)
✨ Finishing Touches
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
Documentation and Community
|
Uh oh!
There was an error while loading. Please reload this page.