hooks: Add updated_at parameter to MergeRequest and Issue hooks
Signed-off-by: pep <pep@bouah.net>
This commit is contained in:
parent
0a02d85563
commit
990829d72c
5 changed files with 10 additions and 0 deletions
|
|
@ -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()),
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue