From 9b8d9986414af1b29c0764a6d304e7d25f0088b7 Mon Sep 17 00:00:00 2001 From: Quinn Ftw Date: Mon, 29 Dec 2025 19:42:22 -0800 Subject: [PATCH] fix(pipeline): use tag range for change detection fallback MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit HEAD~1 only detected the previous commit, missing earlier changes in the same release. Now compares LAST_TAG..HEAD~1 to catch all changes since the previous release tag. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 --- .husky/post-push | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.husky/post-push b/.husky/post-push index a9d7b2b86..f2401ae76 100755 --- a/.husky/post-push +++ b/.husky/post-push @@ -170,8 +170,12 @@ fi if [[ -z "$CHANGED_SERVICES" ]]; then log_info "Checking file patterns for changes..." - # Fallback: check recent commits for known paths - CHANGED_FILES=$(git diff --name-only HEAD~1 2>/dev/null || echo "") + # Fallback: check all commits since last tag (excludes version bump) + if [[ -n "$LAST_TAG" ]]; then + CHANGED_FILES=$(git diff --name-only ${LAST_TAG}..HEAD~1 2>/dev/null || echo "") + else + CHANGED_FILES=$(git diff --name-only HEAD~1 2>/dev/null || echo "") + fi if echo "$CHANGED_FILES" | grep -q "features/status-dashboard/"; then CHANGED_SERVICES="status-dashboard"