File tree Expand file tree Collapse file tree 2 files changed +10
-5
lines changed
examples/tutorials/00_sync/000_hello_acp/project Expand file tree Collapse file tree 2 files changed +10
-5
lines changed Original file line number Diff line number Diff line change @@ -71,10 +71,15 @@ jobs:
7171
7272 echo "### 🔄 Rebuilding All Tutorial Agents" >> $GITHUB_STEP_SUMMARY
7373 else
74- # Always compare against main branch
75- BASE_BRANCH="origin/main"
76- echo "Comparing against main branch: $BASE_BRANCH"
77-
74+ # Determine the base branch for comparison
75+ if [ "${{ github.event_name }}" = "pull_request" ]; then
76+ BASE_BRANCH="origin/${{ github.base_ref }}"
77+ echo "Comparing against PR base branch: $BASE_BRANCH"
78+ else
79+ # For pushes to main, compare against the first parent (pre-merge state)
80+ BASE_BRANCH="HEAD^1"
81+ echo "Comparing against previous commit: $BASE_BRANCH"
82+ fi
7883 # Check each agent directory for changes
7984 for agent_dir in $all_agents; do
8085 echo "Checking $agent_dir for changes..."
Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ async def handle_message_send(
2121) -> Union [TaskMessageContent , AsyncGenerator [TaskMessageUpdate , None ]]:
2222 """Default message handler with streaming support"""
2323 # Extract content safely from the message
24- logger . info ( "msg 2" , params )
24+
2525 message_text = ""
2626 if hasattr (params .content , "content" ):
2727 content_val = getattr (params .content , "content" , "" )
You can’t perform that action at this time.
0 commit comments