hooks: Add updated_at parameter to MergeRequest and Issue hooks

Signed-off-by: pep <pep@bouah.net>
This commit is contained in:
pep 2026-01-08 13:44:38 +01:00
commit 990829d72c
5 changed files with 10 additions and 0 deletions

View file

@ -19,6 +19,7 @@ use crate::hooks::types::{
};
pub use ::forgejo_hooks::{Hook as ForgejoHook, Issue as FjIssue, IssueAction as FjIssueAction};
use chrono::Utc;
impl From<FjIssueAction> for IssueAction {
fn from(other: FjIssueAction) -> IssueAction {
@ -43,6 +44,7 @@ impl From<FjIssue> for Issue {
name: other.repository.name,
},
url: Some(other.issue.html_url),
updated_at: other.issue.updated_at.unwrap_or(Utc::now()),
}
}
}