File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -458,8 +458,7 @@ def main_unhandled_issues(
458458 "text" : {
459459 "type" : "mrkdwn" ,
460460 "text" : (
461- f"*:sentry: { icon } { product } "
462- f"Top New Sentry Issues "
461+ f"*:sentry: Top New Sentry Issues "
463462 f"({ now } )*"
464463 )
465464 }
@@ -486,8 +485,6 @@ def main_unhandled_issues(
486485 humanize_counts = True ,
487486 )
488487
489- insert_json_footer (json_data )
490-
491488 output_path = Path (f'sentry-slack-unhandled-{ project } .json' )
492489 output_path .write_text (json .dumps (json_data , indent = 4 ))
493490 print (f"Slack message written to { output_path .resolve ()} " )
@@ -560,6 +557,9 @@ def _write_longform_threaded(
560557 threshold = 500 ,
561558 humanize_counts = True ,
562559 )
560+ # Footer goes on the last reply so it closes out the thread.
561+ if i == len (versions ):
562+ insert_json_footer (reply_data )
563563 reply_path = Path (
564564 f'sentry-slack-unhandled-long-{ project } -reply-{ i :02d} .json'
565565 )
You can’t perform that action at this time.
0 commit comments