Skip to content

Commit

Permalink
🔧 Fix formatting for dedent string.
Browse files Browse the repository at this point in the history
  • Loading branch information
PepperMoJ committed Oct 23, 2024
1 parent db2d896 commit 387d7e0
Showing 1 changed file with 11 additions and 10 deletions.
21 changes: 11 additions & 10 deletions services/slack_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,16 +110,17 @@ def send_pat_report_alert(self):
self._send_alert_to_operations_engineering(blocks)

def send_new_github_joiner_metrics_alert(self, new_members_added_by_oe, new_members_added_externally, percentage, total_new_members, org, audit_log_url, time_delta_in_days):
message = dedent(f"""
*New GitHub Joiner Metrics*
Here are the {total_new_members} new joiners added in the last {time_delta_in_days} days within the '{org}' GitHub org.
*Added by Operations Engineering:*
{new_members_added_by_oe}
*Added externally:*
{new_members_added_externally}
{percentage}% of the new joiners were added by operations engineering.
Please review the audit log for more details: {audit_log_url}
""").strip("/n")
message = dedent(
f"""
*New GitHub Joiner Metrics*
Here are the {total_new_members} new joiners added in the last {time_delta_in_days} days within the '{org}' GitHub org.
*Added by Operations Engineering:*
{new_members_added_by_oe}
*Added externally:*
{new_members_added_externally}
{percentage}% of the new joiners were added by operations engineering.
Please review the audit log for more details: {audit_log_url}
""").strip("/n")
blocks = self._create_block_with_message(message)
self._send_alert_to_operations_engineering(blocks)

Expand Down

0 comments on commit 387d7e0

Please sign in to comment.