Skip to content

Add schema for prek#5345

Merged
hyperupcall merged 2 commits intoSchemaStore:masterfrom
j178:prek
Feb 5, 2026
Merged

Add schema for prek#5345
hyperupcall merged 2 commits intoSchemaStore:masterfrom
j178:prek

Conversation

@j178
Copy link
Contributor

@j178 j178 commented Feb 4, 2026

prek is a git hook manager written in Rust. This PR adds JSON Schema for configuration file: prek.toml.

Related Links:

Project repository: https://github.com/j178/prek
Schema file: https://raw.githubusercontent.com/j178/prek/master/prek.schema.json

Copilot AI review requested due to automatic review settings February 4, 2026 11:05
@github-actions
Copy link
Contributor

github-actions bot commented Feb 4, 2026

Thanks for the PR!

This section of the codebase is owned by @madskristensen and @hyperupcall - if they write a comment saying "LGTM" then it will be merged.

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

Adds an initial JSON Schema entry for prek configuration files and registers it in the SchemaStore catalog.

Changes:

  • Added a prek.toml test fixture.
  • Added a new (currently minimal) JSON Schema for prek.
  • Registered prek in catalog.json for prek.toml file matching.

Reviewed changes

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

File Description
src/test/prek/prek.toml Adds a sample prek configuration used for validation/testing.
src/schemas/json/prek.json Introduces the JSON Schema definition for prek.
src/api/json/catalog.json Registers the prek schema in the public catalog.

@j178 j178 force-pushed the prek branch 5 times, most recently from 7cec49b to dd8ac70 Compare February 4, 2026 11:30
"name": "prek",
"description": "Configuration file for prek, a tool for managing git hooks",
"fileMatch": ["prek.toml"],
"url": "https://www.schemastore.org/prek.json"
Copy link
Contributor

Choose a reason for hiding this comment

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

Just some reminder, we can just add a schema file link here, not total schema file, if schema file changed in the future, we need to make a PR again and wait review again, that may take a long time. Like I do in #5170.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thanks! I saw that rumdl switched from an external hosting schema to a locally hosted one in #5305. Hosting it externally means you don’t have to open PRs every time you update it, but having a link like "https://www.schemastore.org/prek.json" is way more convenient than something like "https://raw.githubusercontent.com/j178/prek/master/prek.schema.json", and it also feels more trustworthy for users.

@hyperupcall
Copy link
Member

Thanks! This ready to merge?

@j178
Copy link
Contributor Author

j178 commented Feb 5, 2026

Yes!

@hyperupcall
Copy link
Member

Great, thanks

@hyperupcall hyperupcall merged commit f17816b into SchemaStore:master Feb 5, 2026
4 checks passed
@j178
Copy link
Contributor Author

j178 commented Feb 5, 2026

Thank you❤️

@j178 j178 mentioned this pull request Feb 6, 2026
16 tasks
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