Use iid field (and not id) field for the correct issue ID
Some checks failed
CI / CI (push) Failing after 2m25s

This commit is contained in:
Brian Tarricone 2023-09-20 18:17:27 -07:00
parent b33935b5f8
commit be9f117047

View File

@ -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 {