Skip to content

Commit 30e9017

Browse files
authored
chore: add make docs to pre-commit hooks (#920)
1 parent cdc0c86 commit 30e9017

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ Buildkite Terraform Provider is licensed under the MIT license.
2929
Contributions are welcome.
3030

3131
If you wish to work on the provider, you'll first need Go installed on your machine (version 1.21+ is required). Dependencies are managed via gomodules and installed automatically as required.
32+
Git hooks are managed with [Lefthook](https://lefthook.dev).
3233

3334
To compile the provider:
3435

lefthook.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@ pre-commit:
33
gofmt:
44
glob: "*.go"
55
run: gofmt -s -w buildkite
6+
docs:
7+
glob: "*.go"
8+
run: make docs
69
gomodtidy:
710
glob: "*.go"
811
run: go mod tidy

0 commit comments

Comments
 (0)