We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 19a277f + c622edd commit 8536956Copy full SHA for 8536956
src/handlers/notify_zulip.rs
@@ -218,12 +218,18 @@ pub(super) async fn handle_input<'a>(
218
let msg = msg.replace("{title}", &event.issue.title);
219
let msg = replace_team_to_be_nominated(&event.issue.labels, msg);
220
221
- crate::zulip::MessageApiRequest {
+ let resp = crate::zulip::MessageApiRequest {
222
recipient,
223
content: &msg,
224
}
225
.send(&ctx.github.raw())
226
.await?;
227
+
228
+ let status = resp.status();
229
+ let body = resp.text().await?;
230
+ if !status.is_success() {
231
+ log::error!("Failed to send notification to Zulip {}", body);
232
+ }
233
234
235
0 commit comments