From 3f2e073b1a57b3ba21ca36affab08482798e9f75 Mon Sep 17 00:00:00 2001 From: Niko Matsakis Date: Tue, 17 Sep 2024 09:24:48 -0400 Subject: [PATCH] only update zulip when tracking issues are opened The existing logic was only updating zulip when NON-tracking issues are opened. --- src/handlers/project_goals.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/handlers/project_goals.rs b/src/handlers/project_goals.rs index 55141a35..29d3141f 100644 --- a/src/handlers/project_goals.rs +++ b/src/handlers/project_goals.rs @@ -226,7 +226,7 @@ pub async fn handle(ctx: &Context, event: &Event) -> anyhow::Result<()> { issue, .. }) => { - if issue.labels.iter().any(|l| l.name == C_TRACKING_ISSUE) { + if !issue.labels.iter().any(|l| l.name == C_TRACKING_ISSUE) { return Ok(()); } let zulip_topic_name = zulip_topic_name(issue);