mirror of
https://github.com/Noratrieb/does-it-build.git
synced 2026-01-14 18:35:01 +01:00
Fix monthly notifications
This commit is contained in:
parent
d15a746558
commit
90a64f5201
1 changed files with 7 additions and 1 deletions
|
|
@ -115,7 +115,13 @@ pub async fn notify_build_failure(
|
|||
jiff::Timestamp::from_millisecond(last_update_date).is_ok_and(|last_update_date| {
|
||||
jiff::Timestamp::now()
|
||||
.since(last_update_date)
|
||||
.is_ok_and(|diff| diff.get_months() > 0)
|
||||
.is_ok_and(|diff| {
|
||||
diff.total((
|
||||
jiff::Unit::Month,
|
||||
&last_update_date.to_zoned(jiff::tz::TimeZone::UTC),
|
||||
))
|
||||
.is_ok_and(|diff_months| diff_months >= 1.0)
|
||||
})
|
||||
})
|
||||
}) {
|
||||
info!(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue