Skip to content

Commit c57aaac

Browse files
authored
Ensure email subject reflects pass/fail state (#270)
1 parent f16c60b commit c57aaac

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

extensions/content-health-monitor/content-health-monitor.qmd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ send_email = utils.should_send_email(show_error, content_result)
139139
:::
140140

141141
::: {.subject}
142-
`{python} f"Content Health Monitor - \"{content_result.get('name', 'Unknown Content') if content_result else 'Unknown Content'}\" has failed monitoring"`
142+
`{python} f"{('❌' if content_result and content_result.get('status') == 'FAIL' else '✅')} Content Health Monitor - \"{content_result.get('name', 'Unknown Content') if content_result else 'Unknown Content'}\" {('has failed monitoring' if content_result and content_result.get('status') == 'FAIL' else 'is healthy')}"`
143143
:::
144144

145145
```{python}

0 commit comments

Comments
 (0)