👷 chore(pre-commit): ignore TODO in changelog

main
welpo 1 year ago
parent 527d209d7d
commit b16ad26b00
No known key found for this signature in database
GPG Key ID: A2F978CF4EC1F5A6

@ -151,10 +151,13 @@ fi
# Get the newly added and modified files. # Get the newly added and modified files.
all_changed_files=$(git diff --cached --name-only --diff-filter=AM) all_changed_files=$(git diff --cached --name-only --diff-filter=AM)
script_name=$(basename "$0")
# Loop through all newly added or modified files. # Loop through all newly added or modified files.
for file in $all_changed_files; do for file in $all_changed_files; do
# Ignore this script. file_name=$(basename "$file")
if [[ "$file" == "$0" ]]; then
# Ignore this script and the changelog.
if [[ "$file_name" == "$script_name" ]] || [[ "$file_name" == "CHANGELOG.md" ]]; then
continue continue
fi fi

Loading…
Cancel
Save