From be9f11704708341d0d1ab70c2f5d7537839b9572 Mon Sep 17 00:00:00 2001 From: "Brian J. Tarricone" Date: Wed, 20 Sep 2023 18:17:27 -0700 Subject: [PATCH] Use iid field (and not id) field for the correct issue ID --- src/event.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/event.rs b/src/event.rs index 4f1a140..51c83cd 100644 --- a/src/event.rs +++ b/src/event.rs @@ -185,7 +185,7 @@ impl fmt::Display for IssueAction { #[derive(Debug, Deserialize)] pub struct IssueObjectAttributes { - pub id: u32, + pub iid: u32, pub title: String, pub action: IssueAction, pub url: String, @@ -406,7 +406,7 @@ impl GitlabEventExt for GitlabEvent { if object_attributes.action != IssueAction::Other { let title = format!( "Issue #{} **{}**: {}", - object_attributes.id, object_attributes.action, object_attributes.title + object_attributes.iid, object_attributes.action, object_attributes.title ); vec![markdown_link(&title, &object_attributes.url)] } else {