Use iid field (and not id) field for the correct issue ID
Some checks failed
CI / CI (push) Failing after 2m25s
Some checks failed
CI / CI (push) Failing after 2m25s
This commit is contained in:
parent
b33935b5f8
commit
be9f117047
@ -185,7 +185,7 @@ impl fmt::Display for IssueAction {
|
|||||||
|
|
||||||
#[derive(Debug, Deserialize)]
|
#[derive(Debug, Deserialize)]
|
||||||
pub struct IssueObjectAttributes {
|
pub struct IssueObjectAttributes {
|
||||||
pub id: u32,
|
pub iid: u32,
|
||||||
pub title: String,
|
pub title: String,
|
||||||
pub action: IssueAction,
|
pub action: IssueAction,
|
||||||
pub url: String,
|
pub url: String,
|
||||||
@ -406,7 +406,7 @@ impl GitlabEventExt for GitlabEvent {
|
|||||||
if object_attributes.action != IssueAction::Other {
|
if object_attributes.action != IssueAction::Other {
|
||||||
let title = format!(
|
let title = format!(
|
||||||
"Issue #{} **{}**: {}",
|
"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)]
|
vec![markdown_link(&title, &object_attributes.url)]
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user