Skip to content

ci(registry): enforce .json-only component submission files#19

Merged
sfc-gh-bnisco merged 1 commit intomainfrom
fix-validate-json
Feb 23, 2026
Merged

ci(registry): enforce .json-only component submission files#19
sfc-gh-bnisco merged 1 commit intomainfrom
fix-validate-json

Conversation

@sfc-gh-bnisco
Copy link
Contributor

Fail validation when any non-JSON file exists in components/registry/components and document the rule in the registry README so contributors understand CI expectations.

Fail validation when any non-JSON file exists in components/registry/components and document the rule in the registry README so contributors understand CI expectations.

Co-authored-by: Cursor <cursoragent@cursor.com>
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR tightens CI validation for the component registry by enforcing that the source submissions directory contains only JSON component files, and documents the rule for contributors.

Changes:

  • Add a validation step that flags any non-.json file directly under components/registry/components/.
  • Document the JSON-only rule in the registry README as a common CI failure mode.

Reviewed changes

Copilot reviewed 2 out of 3 changed files in this pull request and generated 3 comments.

File Description
components/registry/scripts/validate.py Adds a pre-scan to reject non-.json files in the components directory before validating JSON submissions.
components/registry/README.md Documents the JSON-only directory rule so contributors understand CI expectations.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@sfc-gh-bnisco sfc-gh-bnisco merged commit 6d8f3c2 into main Feb 23, 2026
7 checks passed
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.

3 participants