1
1
mirror of https://github.com/orhun/git-cliff.git synced 2025-01-05 15:58:24 +03:00

fix(changelog): use footers field as an array for the context

This commit is contained in:
orhun 2021-07-18 14:43:29 +03:00
parent fa6a38b339
commit 3e5c23d342
No known key found for this signature in database
GPG Key ID: B928720AEC532117

View File

@ -124,7 +124,15 @@ impl Serialize for Commit<'_> {
Some(conv) => {
commit.serialize_field("message", conv.description())?;
commit.serialize_field("body", &conv.body())?;
commit.serialize_field("footer", conv.footers())?;
commit.serialize_field(
"footers",
&conv
.footers()
.to_vec()
.iter()
.map(|f| f.value())
.collect::<Vec<&str>>(),
)?;
commit.serialize_field(
"group",
self.group.as_ref().unwrap_or(&conv.type_().to_string()),