Skip to content

Commit 983e013

Browse files
Alexander Berezovskypivotal
authored andcommitted
Add overcommit config with ForbiddenBranches enabled
Disable default overcommit commit message checks [#161332276] Signed-off-by: Andrew Chang <anchang@pivotal.io>
1 parent f5fe901 commit 983e013

1 file changed

Lines changed: 45 additions & 0 deletions

File tree

.overcommit.yml

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
# Use this file to configure the Overcommit hooks you wish to use. This will
2+
# extend the default configuration defined in:
3+
# https://github.com/brigade/overcommit/blob/master/config/default.yml
4+
#
5+
# At the topmost level of this YAML file is a key representing type of hook
6+
# being run (e.g. pre-commit, commit-msg, etc.). Within each type you can
7+
# customize each hook, such as whether to only run it on certain files (via
8+
# `include`), whether to only display output if it fails (via `quiet`), etc.
9+
#
10+
# For a complete list of hooks, see:
11+
# https://github.com/brigade/overcommit/tree/master/lib/overcommit/hook
12+
#
13+
# For a complete list of options that you can use to customize hooks, see:
14+
# https://github.com/brigade/overcommit#configuration
15+
#
16+
# Uncomment the following lines to make the configuration take effect.
17+
---
18+
verify_signatures: false
19+
20+
CommitMsg:
21+
# SpellCheck:
22+
# enabled: true
23+
# description: 'Check for misspelled words'
24+
# required_executable: 'aspell'
25+
# flags: ['-a']
26+
27+
CapitalizedSubject:
28+
enabled: false
29+
30+
EmptyMessage:
31+
enabled: false
32+
33+
TrailingPeriod:
34+
enabled: false
35+
36+
TextWidth:
37+
enabled: false
38+
39+
SingleLineSubject:
40+
enabled: false
41+
42+
PreCommit:
43+
ForbiddenBranches:
44+
enabled: true
45+
branch_patterns: ['master']

0 commit comments

Comments
 (0)