File tree Expand file tree Collapse file tree 2 files changed +31
-0
lines changed Expand file tree Collapse file tree 2 files changed +31
-0
lines changed Original file line number Diff line number Diff line change
1
+ - id : talisman-commit
2
+ name : talisman
3
+ entry : talisman -githook pre-commit
4
+ stages : [commit]
5
+ # talisman currently discovers files by itself and does not take them on the cli
6
+ pass_filenames : false
7
+ types : [text]
8
+ language : golang
9
+
10
+ - id : talisman-push
11
+ name : talisman
12
+ entry : talisman -githook pre-push
13
+ stages : [push]
14
+ # talisman currently discovers files by itself and does not take them on the cli
15
+ pass_filenames : false
16
+ types : [text]
17
+ language : golang
Original file line number Diff line number Diff line change @@ -86,6 +86,20 @@ Note that we can ignore files in a few different ways:
86
86
is matched against the base name of the file. Thus, the pattern will
87
87
match files with that name anywhere in the repository.
88
88
89
+ #### Usage with the [ pre-commit] ( https://pre-commit.com ) git hooks framework
90
+
91
+ Add this to your ` .pre-commit-config.yaml ` (be sure to update ` rev ` to point to
92
+ a real git revision!)
93
+
94
+ ``` yaml
95
+ - repo : https://github.com/thoughtworks/talisman
96
+ rev : ' ' # Update me!
97
+ hooks :
98
+ # either `commit` or `push` support
99
+ - id : talisman-commit
100
+ # - id: talisman-push
101
+ ```
102
+
89
103
#### Developing locally
90
104
91
105
To contribute to Talisman, you need a working golang development
You can’t perform that action at this time.
0 commit comments