diff --git a/src/handlers/notify_zulip.rs b/src/handlers/notify_zulip.rs index 87d0a018..b569832c 100644 --- a/src/handlers/notify_zulip.rs +++ b/src/handlers/notify_zulip.rs @@ -159,6 +159,7 @@ pub(super) async fn handle_input<'a>( msg = msg.replace("{number}", &event.issue.number.to_string()); msg = msg.replace("{title}", &event.issue.title); + msg = replace_team_to_be_nominated(&event.issue.labels, msg); let zulip_req = crate::zulip::MessageApiRequest { recipient: crate::zulip::Recipient::Stream { @@ -172,3 +173,66 @@ pub(super) async fn handle_input<'a>( Ok(()) } + +fn replace_team_to_be_nominated(labels: &Vec