Skip to content

Commit 149b3f6

Browse files
committed
Remove footer from short report. Treak header.
1 parent edc0fc8 commit 149b3f6

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

api/sentry/utils.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff 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
)

0 commit comments

Comments
 (0)