File tree Expand file tree Collapse file tree 2 files changed +20
-2
lines changed Expand file tree Collapse file tree 2 files changed +20
-2
lines changed Original file line number Diff line number Diff line change @@ -385,6 +385,15 @@ jobs:
385385 )
386386 failing_versions_html = '\n'.join(failing_sections)
387387
388+ subject_parts: list[str] = []
389+ if failing_mcp:
390+ subject_parts.append('MCP ' + ', '.join(failing_mcp))
391+ if failing_fastmcp:
392+ subject_parts.append('FastMCP ' + ', '.join(failing_fastmcp))
393+ subject_suffix = ' | '.join(subject_parts) if subject_parts else 'See workflow logs'
394+ subject_line = f'🚨 MCPCat Compatibility Tests Failed - {subject_suffix}'
395+ print(f'Email subject suffix: {subject_suffix}')
396+
388397 email_html = f'''
389398 <h2>🚨 MCPCat Compatibility Tests Failed</h2>
390399
@@ -429,7 +438,7 @@ jobs:
429438 params = {
430439 'from': 'no-reply@mcpcat.io', # Use Resend's default verified domain
431440 'to': [alert_email], # Use variable, not inline secret
432- 'subject': '🚨 MCPCat Compatibility Tests Failed - Immediate Action Required' ,
441+ 'subject': subject_line ,
433442 'html': email_html,
434443 'tags': [
435444 {'name': 'alert_type', 'value': 'compatibility_failure'},
Original file line number Diff line number Diff line change @@ -371,6 +371,15 @@ jobs:
371371 )
372372 failing_versions_html = '\n'.join(failing_sections)
373373
374+ subject_parts: list[str] = []
375+ if failing_mcp:
376+ subject_parts.append('MCP ' + ', '.join(failing_mcp))
377+ if failing_fastmcp:
378+ subject_parts.append('FastMCP ' + ', '.join(failing_fastmcp))
379+ subject_suffix = ' | '.join(subject_parts) if subject_parts else 'See workflow logs'
380+ subject_line = f'⚠️ MCPCat Prerelease Tests Failed - {subject_suffix}'
381+ print(f'Email subject suffix: {subject_suffix}')
382+
374383 email_html = f'''
375384 <h2>⚠️ MCPCat Prerelease Compatibility Tests Failed</h2>
376385
@@ -411,7 +420,7 @@ jobs:
411420 params = {
412421 'from': 'no-reply@mcpcat.io', # Use Resend's default verified domain
413422 'to': [alert_email], # Use variable, not inline secret
414- 'subject': '⚠️ MCPCat Prerelease Tests Failed - Action Required' ,
423+ 'subject': subject_line ,
415424 'html': email_html,
416425 'tags': [
417426 {'name': 'alert_type', 'value': 'prerelease_failure'},
You can’t perform that action at this time.
0 commit comments