Skip to content

Commit 9b4bdc8

Browse files
committed
chore: rekres, add lefthook config for make docs
Adds lefthook config to .kres.yaml, for the custom.Step that generates the `make docs` target. Signed-off-by: Maja Bojarska <maja.bojarska@siderolabs.com>
1 parent 425e59e commit 9b4bdc8

3 files changed

Lines changed: 47 additions & 3 deletions

File tree

.kres.yaml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -721,6 +721,17 @@ spec:
721721
ghaction:
722722
enabled: true
723723
condition: on-pull-request
724+
lefthook:
725+
enabled: true
726+
hooks:
727+
pre-commit:
728+
jobs:
729+
- name: fix
730+
group:
731+
jobs:
732+
- name: docs
733+
run: make docs
734+
stage_fixed: true
724735
---
725736
kind: custom.Step
726737
name: talosctl

Makefile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# THIS FILE WAS AUTOMATICALLY GENERATED BY KRES, PLEASE DO NOT EDIT.
22
#
3-
# Generated on 2026-05-29T16:37:49Z by kres 8085f7d.
3+
# Generated on 2026-06-02T09:34:10Z by kres c1cf61e.
44

55
# common variables
66

@@ -242,7 +242,7 @@ lint-gofumpt: ## Runs gofumpt linter.
242242

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

500500
.PHONY: renovate-local
501501
renovate-local: ## runs renovate locally to check syntax and test configuration

lefthook.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
# THIS FILE WAS AUTOMATICALLY GENERATED BY KRES, PLEASE DO NOT EDIT.
2+
#
3+
# Generated on 2026-06-02T09:34:10Z by kres c1cf61e.
4+
5+
commit-msg:
6+
parallel: false
7+
commands:
8+
conformance:
9+
run: make conformance
10+
pre-commit:
11+
jobs:
12+
- name: fix
13+
group:
14+
parallel: false
15+
jobs:
16+
- name: generate
17+
run: make generate
18+
stage_fixed: true
19+
- name: fmt
20+
run: make fmt
21+
stage_fixed: true
22+
- name: lint-fmt
23+
run: make lint-fmt
24+
stage_fixed: true
25+
- name: docs
26+
run: make docs
27+
stage_fixed: true
28+
- name: lint
29+
group:
30+
parallel: false
31+
jobs:
32+
- name: lint
33+
run: make lint

0 commit comments

Comments
 (0)