Skip to content

Commit 2dfd337

Browse files
committed
Remove double header, try to fix one-step
1 parent 94075de commit 2dfd337

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/redis_release/state_slack.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -400,6 +400,9 @@ def _collect_workflow_details_slack(
400400
self._format_steps_for_slack(workflow_status[1], workflow_name)
401401
)
402402

403+
if self.slack_format == SlackFormat.ONE_STEP:
404+
details = details[-1:]
405+
403406
return "\n".join(details)
404407

405408
def _format_steps_for_slack(
@@ -415,7 +418,7 @@ def _format_steps_for_slack(
415418
List of formatted step strings
416419
"""
417420
details: List[str] = []
418-
details.append(f"*{prefix}*")
421+
# details.append(f"*{prefix}*")
419422

420423
for step_status, step_name, step_message in steps:
421424
if step_status == StepStatus.SUCCEEDED:
@@ -429,7 +432,4 @@ def _format_steps_for_slack(
429432
details.append(f"• ❌ {step_name}{msg}")
430433
break
431434

432-
if self.slack_format == SlackFormat.ONE_STEP:
433-
details = details[-1:]
434-
435435
return details

0 commit comments

Comments
 (0)