-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.sh
executable file
·126 lines (119 loc) · 1.3 KB
/
setup.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
#!/bin/bash
#
# Generic script to setup the repository for local development
echo "Installing pre-commit"
pip install pre-commit
pre-commit install
echo "Installing commit-msg"
HOOK_LOCATION=".git/hooks/commit-msg"
VERB_LOCATION=".git/hooks/verbs.txt"
cat << 'EOF' > "$HOOK_LOCATION"
#!/bin/sh
#
# Git hook to check for semantic commit messages in the form mentioned here
export VERB=$(cut -d ' ' -f1 < "$1")
(grep "$VERB" .git/hooks/verbs.txt > /dev/null) || (echo "Missing a verb"; exit 1)
EOF
chmod +x $HOOK_LOCATION
cat << 'EOF' > "$VERB_LOCATION"
Add
Update
Fix
Refactor
Remove
Implement
Enhance
Optimize
Revise
Adjust
Modify
Rewrite
Improve
Correct
Debug
Delete
Replace
Create
Design
Develop
Build
Configure
Resolve
Patch
Extend
Reduce
Increase
Simplify
Merge
Split
Release
Deploy
Test
Validate
Format
Organize
Reorganize
Rename
Repackage
Refine
Rework
Expand
Collapse
Integrate
Extract
Introduce
Finalize
Prepare
Generate
Convert
Upload
Download
Sync
Encrypt
Decrypt
Authenticate
Authorize
Invalidate
Sanitize
Analyze
Inspect
Probe
Examine
Index
Compress
Decompress
Archive
Restore
Save
Load
Export
Import
Visualize
Illustrate
Diagram
Plot
Map
Scan
Seek
Find
Discover
Track
Monitor
Observe
Watch
Alert
Notify
Log
Record
Report
Summarize
Detail
Document
Annotate
Comment
Explain
Clarify
Define
Enumerate
Stabilize
EOF