mirror of
https://github.com/AdguardTeam/AdGuardHome.git
synced 2026-11-29 11:10:14 +00:00
Some checks failed
Build and test QA artifacts / Build (push) Has been cancelled
Mirror / mirror (push) Has been cancelled
Lint and test workflow (private) / TestFrontend (push) Has been cancelled
Lint and test workflow (private) / LintAndTestJobDocker (push) Has been cancelled
Lint and test workflow (private) / LintAndTestJobMacOS (push) Has been cancelled
Lint and test workflow (private) / LintAndTestJobWindows (push) Has been cancelled
Test and snapshot workflow / ESLint (push) Has been cancelled
Test and snapshot workflow / TestJob (macos-latest) (push) Has been cancelled
Test and snapshot workflow / TestJob (ubuntu-latest) (push) Has been cancelled
Test and snapshot workflow / TestJob (windows-latest) (push) Has been cancelled
Build and test QA artifacts / TestE2E (push) Has been cancelled
Test and snapshot workflow / BuildSnapshot (push) Has been cancelled
* all: upd go; upd tools; upd chlog; upd scripts and hooks; * make: fix script; * make: fix script; * make: upd docs; add todos; * make: fix go-test;
29 lines
686 B
Bash
Executable file
29 lines
686 B
Bash
Executable file
#!/bin/sh
|
|
|
|
# This comment is used to simplify checking local copies of the script. Bump
|
|
# this number every time a significant change is made to this script.
|
|
#
|
|
# AdGuard-Project-Version: 7
|
|
|
|
set -e -f -o 'pipefail' -u
|
|
|
|
. ./scripts/hooks/helper.sh
|
|
|
|
# Warn the programmer about temporary todos and skel FIXMEs, but do not fail the
|
|
# commit, because the commit could be in a temporary branch.
|
|
temp_todos="$(
|
|
git grep -e 'FIXME' -e 'TODO.*!!' -- \
|
|
':!./scripts/hooks/pre-commit' \
|
|
':!./client' \
|
|
|| :
|
|
)"
|
|
readonly temp_todos
|
|
|
|
if [ "$temp_todos" != '' ]; then
|
|
printf 'WARNING: you have temporary todos:\n\n%s\n\n' "$temp_todos"
|
|
prompt
|
|
fi
|
|
|
|
check_unstaged_changes
|
|
|
|
lint_staged_changes
|