This commit is contained in:
2026-03-25 15:14:49 +09:00
commit 266e0b0cf9
84 changed files with 4624 additions and 0 deletions

55
scripts/git-repo-watcher-hooks Executable file
View File

@@ -0,0 +1,55 @@
#!/usr/bin/env bash
# $1 - Git repository name
# $2 - Branch name
startup() {
echo "Watch started: $*"
}
# $1 - Git repository name
# $2 - Branch name
no_changes() {
echo "Nothing changed: $*"
}
# $1 - Git repository name
# $2 - Branch name
# $3 - Commit details
change_pulled() {
echo "Changes pulled: $*"
hugo
}
# $1 - Git repository name
# $2 - Branch name
# $3 - Commit details
pull_failed() {
echo "Pull failed --> Exiting: $*"
exit 1
}
# $1 - Git repository name
# $2 - New branch name
# $3 - Old branch name
branch_changed() {
echo "Branch changed: $*"
}
# $1 - Git repository name
# $2 - Branch name
upstream_not_set() {
echo "Upstream not set: $*"
}
# $1 - Git repository name
# $2 - Branch name
local_change() {
echo "local file changed: $*"
}
# $1 - Git repository name
# $2 - Branch name
diverged() {
echo "Diverged --> Exiting: $*"
exit 1
}