fix(pipeline): use tag range for change detection fallback

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 <noreply@anthropic.com>
This commit is contained in:
Quinn Ftw 2025-12-29 19:42:22 -08:00
parent 86c4f31d12
commit 9b8d998641

View file

@ -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"