Signed-off-by: kjuulh <contact@kjuulh.io>
This commit is contained in:
parent
d94b9cbe86
commit
477d82af55
@ -86,7 +86,7 @@ impl ChangeLogBuilder {
|
|||||||
fn release_timestamp(&self) -> i64 {
|
fn release_timestamp(&self) -> i64 {
|
||||||
self.release_date
|
self.release_date
|
||||||
.and_then(|date| date.and_hms_opt(0, 0, 0))
|
.and_then(|date| date.and_hms_opt(0, 0, 0))
|
||||||
.map(|d| DateTime::<Utc>::from_utc(d, Utc))
|
.map(|d| DateTime::<Utc>::from_naive_utc_and_offset(d, Utc))
|
||||||
.unwrap_or_else(Utc::now)
|
.unwrap_or_else(Utc::now)
|
||||||
.timestamp()
|
.timestamp()
|
||||||
}
|
}
|
||||||
@ -173,6 +173,8 @@ fn default_commit_parsers() -> Vec<CommitParser> {
|
|||||||
default_scope: None,
|
default_scope: None,
|
||||||
scope: None,
|
scope: None,
|
||||||
skip: None,
|
skip: None,
|
||||||
|
field: None,
|
||||||
|
pattern: None,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -191,6 +193,8 @@ fn default_commit_parsers() -> Vec<CommitParser> {
|
|||||||
default_scope: None,
|
default_scope: None,
|
||||||
skip: None,
|
skip: None,
|
||||||
scope: None,
|
scope: None,
|
||||||
|
field: None,
|
||||||
|
pattern: None,
|
||||||
},
|
},
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
@ -210,6 +214,7 @@ fn default_changelog_config(header: Option<String>, release_link: Option<&str>)
|
|||||||
body: Some(default_changelog_body_config(release_link)),
|
body: Some(default_changelog_body_config(release_link)),
|
||||||
footer: None,
|
footer: None,
|
||||||
trim: Some(true),
|
trim: Some(true),
|
||||||
|
postprocessors: None,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user