Skip to content

Commit e4b86e5

Browse files
committed
feat: versions banner
1 parent 893bf02 commit e4b86e5

2 files changed

Lines changed: 6 additions & 2 deletions

File tree

src/dev_tools_hooks/hooks/pre-commit

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44
# Runs custom commands from .dev-hooks.yml (lint, type check, format, etc.)
55
# Optionally filtered by file types
66

7+
DEV_HOOKS_VERSION="1.2.0"
8+
79
# Colors optimized for macOS Terminal
810
RED='\x1b[31m'
911
GREEN='\x1b[32m'
@@ -243,7 +245,7 @@ run_commands() {
243245

244246
echo ""
245247
echo -e "${CYAN}${BOLD}┌──────────────────────────────────────────────────────────────┐${NC}"
246-
echo -e "${CYAN}${BOLD}│ Running pre-commit checks... ${NC}"
248+
echo -e "${CYAN}${BOLD}│ Running pre-commit checks... ${DIM}v${DEV_HOOKS_VERSION}${NC}${CYAN}${BOLD}${NC}"
247249
echo -e "${CYAN}${BOLD}└──────────────────────────────────────────────────────────────┘${NC}"
248250
echo ""
249251

src/dev_tools_hooks/hooks/pre-push

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44
# 1. Validates branch names (ClickUp ID or conventional format)
55
# 2. Runs custom commands from .dev-hooks.yml config file (optionally filtered by file types)
66

7+
DEV_HOOKS_VERSION="1.2.0"
8+
79
# Colors optimized for macOS Terminal
810
RED='\x1b[31m'
911
GREEN='\x1b[32m'
@@ -377,7 +379,7 @@ run_commands() {
377379

378380
echo ""
379381
echo -e "${CYAN}${BOLD}┌──────────────────────────────────────────────────────────────┐${NC}"
380-
echo -e "${CYAN}${BOLD}│ Running pre-push checks... ${NC}"
382+
echo -e "${CYAN}${BOLD}│ Running pre-push checks... ${DIM}v${DEV_HOOKS_VERSION}${NC}${CYAN}${BOLD}${NC}"
381383
echo -e "${CYAN}${BOLD}└──────────────────────────────────────────────────────────────┘${NC}"
382384
echo ""
383385

0 commit comments

Comments
 (0)