mirror of
https://github.com/aliasvault/aliasvault.git
synced 2026-01-02 19:18:13 -05:00
Add commit-msg hook and update docs (#16)
This commit is contained in:
committed by
Leendert de Borst
parent
655978d3a1
commit
a4e60073f0
10
.github/hooks/commit-msg
vendored
Normal file
10
.github/hooks/commit-msg
vendored
Normal file
@@ -0,0 +1,10 @@
|
||||
#!/bin/bash
|
||||
|
||||
# Commit-msg hook to check commit messages for issue number in format "(#123)"
|
||||
|
||||
commit_message=$(cat "$1")
|
||||
|
||||
if ! grep -q "(\#[0-9]\+)" <<< "$commit_message"; then
|
||||
echo "Error: Commit message must contain an issue number in the format \"(#123)\""
|
||||
exit 1
|
||||
fi
|
||||
Reference in New Issue
Block a user