Skip to content

armgit / macro

Public Imported from GitHub
0

Macro is a unified workspace for teams: email, chat, docs, tasks, agents, calls, and CRM — @-linked together with shared AI memory.

fix: update detect-affected-services.sh (#48)

Will Hutchinsone7a2edce1b68
diff --git a/.github/scripts/detect-affected-services.sh b/.github/scripts/detect-affected-services.sh
index c5a489990e..8e5435ad93 100755
--- a/.github/scripts/detect-affected-services.sh
+++ b/.github/scripts/detect-affected-services.sh
@@ -5,7 +5,7 @@ set -e
# It uses cargo metadata to build a proper dependency graph
# Get changed files from git
-CHANGED_FILES=$(git diff --name-only HEAD~1 HEAD | grep "^cloud-storage/" || true)
+CHANGED_FILES=$(git diff --name-only HEAD~1 HEAD | grep "^rust/cloud-storage/" || true)
if [ -z "$CHANGED_FILES" ]; then
echo "No cloud-storage files changed"
@@ -18,7 +18,7 @@ echo "Changed files:" >&2
echo "$CHANGED_FILES" >&2
# Change to cloud-storage directory
-cd cloud-storage
+cd rust/cloud-storage
# Get cargo metadata for the entire workspace with dependencies
METADATA=$(cargo metadata --format-version 1 --no-deps)
@@ -27,7 +27,7 @@ METADATA=$(cargo metadata --format-version 1 --no-deps)
CHANGED_PACKAGES=()
while IFS= read -r file; do
# Extract package directory from file path (e.g., cloud-storage/models_bulk_upload/src/lib.rs -> models_bulk_upload)
- if [[ "$file" =~ ^cloud-storage/([^/]+)/ ]]; then
+ if [[ "$file" =~ ^rust/cloud-storage/([^/]+)/ ]]; then
PKG_NAME="${BASH_REMATCH[1]}"
# Check if this is actually a package in our workspace
if echo "$METADATA" | jq -r --arg name "$PKG_NAME" '.packages[] | select(.name == $name) | .name' | grep -q "$PKG_NAME"; then
@@ -130,4 +130,4 @@ else
echo "services=[]"
echo "has_changes=false"
echo "No services affected by changes" >&2
-fi
\ No newline at end of file
+fi