-
Notifications
You must be signed in to change notification settings - Fork 47
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add compatibility with pre-commit.com
pre-commit.com is a hook framework for automatically configuring a repository to incorporate specified hooks for all developers Signed-off-by: Joey Espinosa <[email protected]>
- Loading branch information
1 parent
d97b22c
commit ea7199a
Showing
2 changed files
with
16 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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] |