From 78827a788f74c9c755f449ce62e981bd6d33a6b5 Mon Sep 17 00:00:00 2001 From: "taylor.osler" Date: Fri, 12 Jun 2026 19:17:54 +0000 Subject: [PATCH] feat(slack): add "mitigate" as alias for the mitigated command Co-Authored-By: sentry-junior[bot] <264270552+sentry-junior[bot]@users.noreply.github.com> --- src/firetower/slack_app/bolt.py | 3 ++- src/firetower/slack_app/handlers/help.py | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/firetower/slack_app/bolt.py b/src/firetower/slack_app/bolt.py index b0c9c699..343e1abb 100644 --- a/src/firetower/slack_app/bolt.py +++ b/src/firetower/slack_app/bolt.py @@ -62,6 +62,7 @@ "backfill", "mitigated", "mit", + "mitigate", "resolved", "fixed", "reopen", @@ -143,7 +144,7 @@ def handle_command( handle_backfill_command(ack, body, command, respond) elif subcommand in ("help", ""): handle_help_command(ack, command, respond) - elif subcommand in ("mitigated", "mit"): + elif subcommand in ("mitigated", "mit", "mitigate"): handle_mitigated_command(ack, body, command, respond) elif subcommand in ("resolved", "fixed"): handle_resolved_command(ack, body, command, respond) diff --git a/src/firetower/slack_app/handlers/help.py b/src/firetower/slack_app/handlers/help.py index 9acde5c2..eb8fd865 100644 --- a/src/firetower/slack_app/handlers/help.py +++ b/src/firetower/slack_app/handlers/help.py @@ -14,7 +14,7 @@ def handle_help_command(ack: Any, command: dict, respond: Any) -> None: f" `{cmd} captain` - Set incident captain (alias: `{cmd} ic`)\n" f" `{cmd} dumpslack` - Update slack transcript in postmortem doc\n" f" `{cmd} list` - List active and mitigated incidents (alias: `{cmd} ls`)\n" - f" `{cmd} mitigated` - Mark incident as mitigated (alias: `{cmd} mit`)\n" + f" `{cmd} mitigated` - Mark incident as mitigated (aliases: `{cmd} mit`, `{cmd} mitigate`)\n" f" `{cmd} resolved` - Mark incident as resolved (alias: `{cmd} fixed`)\n" f" `{cmd} reopen` - Reopen an incident\n" f" `{cmd} cancel` - Cancel an incident\n"