From 7169c3ee70f738b10c61e791679dc8305c035280 Mon Sep 17 00:00:00 2001 From: "Steven S. Lyubomirsky" Date: Tue, 24 Mar 2020 14:48:49 -0700 Subject: [PATCH] Always include description at the top of the experiment summary Slack message (#61) --- subsystem/exp_results/run.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/subsystem/exp_results/run.py b/subsystem/exp_results/run.py index 438d395..b44953c 100644 --- a/subsystem/exp_results/run.py +++ b/subsystem/exp_results/run.py @@ -103,7 +103,6 @@ def main(config_dir, home_dir, output_dir): attachments.append( build_attachment( title='Successful benchmarks', - pretext=description, fields=successful_experiments)) if failed_experiments: attachments.append( @@ -127,7 +126,8 @@ def main(config_dir, home_dir, output_dir): success, report = post_message( webhook, build_message( - text='Dashboard Results', + text='*Dashboard Results*{}'.format( + '\n' + description if description != '' else ''), attachments=attachments)) write_status(output_dir, success, report)