Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions .kres.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -721,6 +721,17 @@ spec:
ghaction:
enabled: true
condition: on-pull-request
lefthook:
enabled: true
hooks:
pre-commit:
jobs:
- name: fix
group:
jobs:
- name: docs
run: make docs
stage_fixed: true
---
kind: custom.Step
name: talosctl
Expand Down
6 changes: 3 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# THIS FILE WAS AUTOMATICALLY GENERATED BY KRES, PLEASE DO NOT EDIT.
#
# Generated on 2026-05-29T16:37:49Z by kres 8085f7d.
# Generated on 2026-06-02T09:34:10Z by kres c1cf61e.

# common variables

Expand Down Expand Up @@ -242,7 +242,7 @@ lint-gofumpt: ## Runs gofumpt linter.

.PHONY: fmt
fmt: ## Formats the source code
@docker run --rm -it -v $(PWD):/src -w /src golang:$(GO_VERSION) \
@docker run --rm -v $(PWD):/src -w /src golang:$(GO_VERSION) \
bash -c "export GOTOOLCHAIN=local; \
export GO111MODULE=on; export GOPROXY=https://proxy.golang.org; \
go install mvdan.cc/gofumpt@$(GOFUMPT_VERSION) && \
Expand Down Expand Up @@ -495,7 +495,7 @@ release-notes: $(ARTIFACTS)
.PHONY: conformance
conformance:
@docker pull $(CONFORMANCE_IMAGE)
@docker run --rm -it -v $(PWD):/src -w /src $(CONFORMANCE_IMAGE) enforce
@docker run --rm -v $(PWD):/src -w /src $(CONFORMANCE_IMAGE) enforce

.PHONY: renovate-local
renovate-local: ## runs renovate locally to check syntax and test configuration
Expand Down
33 changes: 33 additions & 0 deletions lefthook.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
# THIS FILE WAS AUTOMATICALLY GENERATED BY KRES, PLEASE DO NOT EDIT.
#
# Generated on 2026-06-02T09:34:10Z by kres c1cf61e.

commit-msg:
parallel: false
commands:
conformance:
run: make conformance
pre-commit:
jobs:
- name: fix
group:
parallel: false
jobs:
- name: generate
run: make generate
stage_fixed: true
- name: fmt
run: make fmt
stage_fixed: true
- name: lint-fmt
run: make lint-fmt
stage_fixed: true
- name: docs
run: make docs
stage_fixed: true
- name: lint
group:
parallel: false
jobs:
- name: lint
run: make lint