Skip to content

Commit f67f99d

Browse files
committed
fix: Updating hook config for README.md.gotmpl
The pre-commit hooks should be triggered when there is a change to the underlying README.md.gotmpl file. Signed-off-by: Scott Crooks <[email protected]>
1 parent f66fdbd commit f67f99d

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

.pre-commit-hooks.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
args: []
33
description: Uses 'helm-docs' to create documentation from the Helm chart's 'values.yaml' file, and inserts the result into a corresponding 'README.md' file.
44
entry: git-hook/helm-docs
5-
files: (Chart|requirements|values)\.yaml$
5+
files: (README\.md\.gotmpl|(Chart|requirements|values)\.yaml)$
66
language: script
77
name: Helm Docs
88
require_serial: true

README.md

+1-2
Original file line numberDiff line numberDiff line change
@@ -265,5 +265,4 @@ pre-commit install
265265
pre-commit install-hooks
266266
```
267267

268-
Future changes to your charts requirements.yaml, values.yaml, or Chart.yaml files will cause an update to documentation when
269-
you commit.
268+
Future changes to your chart's `requirements.yaml`, `values.yaml`, `Chart.yaml`, or `README.md.gotmpl` files will cause an update to documentation when you commit.

0 commit comments

Comments
 (0)