mirror of
https://github.com/heygen-com/hyperframes.git
synced 2026-09-01 19:42:03 +00:00
chore: stop tracking lefthook-local.yml (#1454)
lefthook-local.yml is Lefthook's per-developer override file and is meant to stay local (the shared hooks live in lefthook.yml). It is currently committed, so it applies to everyone who clones the repo: a commit-msg hook in it appends a personal Co-authored-by trailer to every contributor's commit. Remove it from version control and add it to .gitignore so local overrides stay local. lefthook.yml (the shared config) is unchanged. Co-authored-by: Carlos Alcaraz <193642530+calcarazgre646@users.noreply.github.com>
This commit is contained in:
co-authored by
Carlos Alcaraz
parent
f1a50e03ea
commit
2002aa2c07
@@ -10,6 +10,9 @@ dist/
|
||||
.env.local
|
||||
.env.*.local
|
||||
|
||||
# Lefthook per-developer overrides (not shared; see lefthook.yml for shared hooks)
|
||||
lefthook-local.yml
|
||||
|
||||
# OS
|
||||
.DS_Store
|
||||
Thumbs.db
|
||||
|
||||
@@ -1,14 +0,0 @@
|
||||
commit-msg:
|
||||
commands:
|
||||
coauthor:
|
||||
run: |
|
||||
MSG_FILE="{1}"
|
||||
TRAILER1="Co-authored-by: Miguel Ángel <miguel07alm@protonmail.com>"
|
||||
if ! grep -qF "$TRAILER1" "$MSG_FILE"; then
|
||||
# Ensure blank line before trailers
|
||||
if [ -n "$(tail -c1 "$MSG_FILE")" ]; then
|
||||
echo "" >> "$MSG_FILE"
|
||||
fi
|
||||
echo "" >> "$MSG_FILE"
|
||||
echo "$TRAILER1" >> "$MSG_FILE"
|
||||
fi
|
||||
Reference in New Issue
Block a user