feat: Add lefthook support#662
Merged
Merged
Conversation
31ab9c9 to
46ce801
Compare
46ce801 to
3e7c099
Compare
majabojarska
commented
May 28, 2026
3e7c099 to
1875911
Compare
Slessi
reviewed
May 29, 2026
shanduur
reviewed
May 29, 2026
This comment was marked as resolved.
This comment was marked as resolved.
2076b09 to
825a7e4
Compare
825a7e4 to
3fa445c
Compare
Slessi
reviewed
Jun 1, 2026
3fa445c to
5c3b596
Compare
Add support for lefthook. Executes fmt, generate, lint, and conformance make targets on commit (at different stages). Signed-off-by: Maja Bojarska <maja.bojarska@siderolabs.com>
5c3b596 to
c1cf61e
Compare
shanduur
approved these changes
Jun 2, 2026
Member
Author
|
/m |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Add support for lefthook.
Executes
generate,fmt,lint-fmt,lint,generateandconformancemake targets on commit (at different stages). Whether they're included, depends on the project kres is generating the configs for.This is completely opt-in for the end user (or rather developer). Install the hooks locally via
lefthook install(requires lefthook to be installed)