From 1a4861f863198c55673c4f6a591e6b48b525b50a Mon Sep 17 00:00:00 2001 From: Gabe Cook Date: Wed, 17 Apr 2024 13:21:22 -0500 Subject: [PATCH] chore(pre-commit): Add hooks to update manifests and generated code --- .pre-commit-config.yaml | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 737ca72..32b3a51 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -8,3 +8,18 @@ repos: - id: go-vet-mod - id: golangci-lint-mod args: [--fix] + + - repo: local + hooks: + - id: manifests + name: manifests + entry: make manifests + language: system + types: [go] + pass_filenames: false + - id: generate + name: generate + entry: make generate + language: system + types: [go] + pass_filenames: false