diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml new file mode 100644 index 00000000..ef46da5e --- /dev/null +++ b/.pre-commit-config.yaml @@ -0,0 +1,9 @@ +--- +# install with `pre-commit install -t commit-msg` +repos: + - repo: https://github.com/talos-systems/conform + rev: master + hooks: + - id: conform + stages: + - commit-msg diff --git a/.pre-commit-hooks.yaml b/.pre-commit-hooks.yaml new file mode 100644 index 00000000..b3bf0429 --- /dev/null +++ b/.pre-commit-hooks.yaml @@ -0,0 +1,7 @@ +--- +- id: conform + name: Conform + description: Run 'conform enforce' for policy enforcement + entry: conform enforce --commit-msg-file + language: golang + stages: [commit-msg]