forked from codegouvfr/catalogi
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathlefthook.yml
More file actions
38 lines (32 loc) · 991 Bytes
/
lefthook.yml
File metadata and controls
38 lines (32 loc) · 991 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
# SPDX-FileCopyrightText: 2021-2025 DINUM <floss@numerique.gouv.fr>
# SPDX-FileCopyrightText: 2024-2025 Université Grenoble Alpes
# SPDX-License-Identifier: MIT
pre-commit:
commands:
format:
run: pnpm format
stage_fixed: true
sync-helm-version:
glob: "{package.json,helm-charts/catalogi/Chart.yaml}"
run: pnpm sync-helm-charts
stage_fixed: true
bump-helm-chart-version:
glob: "helm-charts/catalogi/**/*"
# This exclude is critical to prevent an infinite loop.
exclude: "helm-charts/catalogi/Chart.yaml"
run: pnpm bump-helm-chart-version
stage_fixed: true
stage-chart-yaml:
glob: "helm-charts/catalogi/Chart.yaml"
run: git add helm-charts/catalogi/Chart.yaml
lint:
run: pnpm turbo lint
commit-msg:
commands:
commit-msg:
run: pnpm exec commitlint --edit {1}
pre-push:
parallel: true
commands:
format-lint-typecheck:
run: pnpm turbo format:check lint typecheck